mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
include file_type and legacy manga when serving json
This commit is contained in:
parent
f0ce50c2da
commit
751954be76
@ -113,6 +113,9 @@ QJsonObject YACReaderServerDataHelper::fullComicToJSON(const qulonglong libraryI
|
||||
json["main_character_or_team"] = comic.info.mainCharacterOrTeam.toString();
|
||||
json["review"] = comic.info.review.toString();
|
||||
json["tags"] = comic.info.tags.toString();
|
||||
auto type = comic.info.type.value<YACReader::FileType>();
|
||||
json["manga"] = type == YACReader::FileType::Manga; // legacy, kept for compatibility with old clients
|
||||
json["file_type"] = comic.info.type.toInt(); // 9.13
|
||||
|
||||
return json;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user