From 177e3ea3baddb8aac8f3c653f2563ca3551ed3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 13 Mar 2018 19:08:39 +0100 Subject: [PATCH] Send the cover size ratio in the comic info json. --- YACReaderLibrary/server/yacreader_server_data_helper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/YACReaderLibrary/server/yacreader_server_data_helper.cpp b/YACReaderLibrary/server/yacreader_server_data_helper.cpp index 187a13ab..d71ecc64 100644 --- a/YACReaderLibrary/server/yacreader_server_data_helper.cpp +++ b/YACReaderLibrary/server/yacreader_server_data_helper.cpp @@ -35,6 +35,7 @@ QJsonObject YACReaderServerDataHelper::comicToJSON(const qulonglong libraryId, c json["current_page"] = comic.info.currentPage; json["num_pages"] = comic.info.numPages.toInt(); json["read"] = comic.info.read; + json["cover_size_ratio"] = comic.info.coverSizeRatio.toFloat(); return json; }