diff --git a/YACReaderLibrary/server/controllers/v2/searchcontroller_v2.cpp b/YACReaderLibrary/server/controllers/v2/searchcontroller_v2.cpp index 3c321cd6..c173717a 100644 --- a/YACReaderLibrary/server/controllers/v2/searchcontroller_v2.cpp +++ b/YACReaderLibrary/server/controllers/v2/searchcontroller_v2.cpp @@ -99,6 +99,7 @@ void SearchController::getComics(int libraryId, QSqlQuery &sqlQuery, QJsonArray auto typeVariant = sqlQuery.value("type"); auto type = typeVariant.value(); json["manga"] = type == YACReader::FileType::Manga; // legacy, kept for compatibility with old clients + json["file_type"] = typeVariant.toInt(); // 9.13 items.append(json); }