mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 19:00:29 -04:00
Include "file_type"
This commit is contained in:
parent
003d88aa24
commit
ac5ba7bb31
@ -99,6 +99,7 @@ void SearchController::getComics(int libraryId, QSqlQuery &sqlQuery, QJsonArray
|
||||
auto typeVariant = sqlQuery.value("type");
|
||||
auto type = typeVariant.value<YACReader::FileType>();
|
||||
json["manga"] = type == YACReader::FileType::Manga; // legacy, kept for compatibility with old clients
|
||||
json["file_type"] = typeVariant.toInt(); // 9.13
|
||||
|
||||
items.append(json);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user