mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Add title and number to comic information and fix file name field.
This commit is contained in:
parent
177e3ea3ba
commit
1fc3c2eee7
@ -29,13 +29,15 @@ QJsonObject YACReaderServerDataHelper::comicToJSON(const qulonglong libraryId, c
|
|||||||
|
|
||||||
json["type"] = "comic";
|
json["type"] = "comic";
|
||||||
json["id"] = QString::number(comic.id);
|
json["id"] = QString::number(comic.id);
|
||||||
json["file_name"] = comic.getFileName();
|
json["file_name"] = comic.name;
|
||||||
json["file_size"] = QString::number(comic.getFileSize());
|
json["file_size"] = QString::number(comic.getFileSize());
|
||||||
json["hash"] = comic.info.hash;
|
json["hash"] = comic.info.hash;
|
||||||
json["current_page"] = comic.info.currentPage;
|
json["current_page"] = comic.info.currentPage;
|
||||||
json["num_pages"] = comic.info.numPages.toInt();
|
json["num_pages"] = comic.info.numPages.toInt();
|
||||||
json["read"] = comic.info.read;
|
json["read"] = comic.info.read;
|
||||||
json["cover_size_ratio"] = comic.info.coverSizeRatio.toFloat();
|
json["cover_size_ratio"] = comic.info.coverSizeRatio.toFloat();
|
||||||
|
json["title"] = comic.info.title;
|
||||||
|
json["number"] = comic.info.number;
|
||||||
|
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user