mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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 typeVariant = sqlQuery.value("type");
|
||||||
auto type = typeVariant.value<YACReader::FileType>();
|
auto type = typeVariant.value<YACReader::FileType>();
|
||||||
json["manga"] = type == YACReader::FileType::Manga; // legacy, kept for compatibility with old clients
|
json["manga"] = type == YACReader::FileType::Manga; // legacy, kept for compatibility with old clients
|
||||||
|
json["file_type"] = typeVariant.toInt(); // 9.13
|
||||||
|
|
||||||
items.append(json);
|
items.append(json);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user