From ac5ba7bb310d8c6deec1b603bc3ea2e6fe9e8779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 10 Jun 2023 11:00:02 +0200 Subject: [PATCH] Include "file_type" --- YACReaderLibrary/server/controllers/v2/searchcontroller_v2.cpp | 1 + 1 file changed, 1 insertion(+) 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); }