mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -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["id"] = QString::number(comic.id);
|
||||
json["file_name"] = comic.getFileName();
|
||||
json["file_name"] = comic.name;
|
||||
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();
|
||||
json["read"] = comic.info.read;
|
||||
json["cover_size_ratio"] = comic.info.coverSizeRatio.toFloat();
|
||||
json["title"] = comic.info.title;
|
||||
json["number"] = comic.info.number;
|
||||
|
||||
return json;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user