Add title and number to comic information and fix file name field.

This commit is contained in:
Luis Ángel San Martín 2018-03-22 20:11:42 +01:00
parent 177e3ea3ba
commit 1fc3c2eee7

View File

@ -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;
}