mirror of
				https://github.com/YACReader/yacreader
				synced 2025-11-04 01:05:06 -05:00 
			
		
		
		
	Add title and number to comic information and fix file name field.
This commit is contained in:
		@ -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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user