Include "file_type"

This commit is contained in:
Luis Ángel San Martín 2023-06-10 11:00:02 +02:00
parent 003d88aa24
commit ac5ba7bb31

View File

@ -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);
}