mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Fix comic to json conversion.
This commit is contained in:
parent
69395398e1
commit
d7d741f87e
@ -23,14 +23,14 @@ QString YACReaderServerDataHelper::comicToYSFormat(const qulonglong libraryId,co
|
||||
.arg(comic.info.read?1:0);
|
||||
}
|
||||
|
||||
static QJsonObject YACReaderServerDataHelper::comicToJSON(const qulonglong libraryId, const ComicDB & comic)
|
||||
QJsonObject YACReaderServerDataHelper::comicToJSON(const qulonglong libraryId, const ComicDB & comic)
|
||||
{
|
||||
QJsonObject json;
|
||||
|
||||
json["type"] = "comic";
|
||||
json["id"] = comic.id;
|
||||
json["id"] = QString::number(comic.id);
|
||||
json["file_name"] = comic.getFileName();
|
||||
json["file_size"] = comic.getFileSize();
|
||||
json["file_size"] = QString::number(comic.getFileSize());
|
||||
json["hash"] = comic.info.hash;
|
||||
json["current_page"] = comic.info.currentPage;
|
||||
json["num_pages"] = comic.info.numPages.toInt();
|
||||
|
Loading…
Reference in New Issue
Block a user