View Single Post
Old 07-15-2020, 05:38 AM   #15
jindroush
Connoisseur
jindroush doesn't litterjindroush doesn't litter
 
Posts: 94
Karma: 104
Join Date: Nov 2014
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
You use format_metadata() Note that uncompressed_size is not actually used for anything. Sizes of individual format files are read from the filesystem with a cache for performance.
Yes, this is what I found out. But the logic in QualityCheck is basically based on assumption that there is a difference between 'uncompressed_size' and actual filesystem size and this is what it checks and tries to repair, and that there is a method of getting 'uncompressed_size'. It seems that this logic is based on the past behaviour of Calibre, and since the plugin seems to be abandoned, it's not working anymore.

With the fix I made, uncompress_size and also the max of all formats are updated, which makes me happy (since I use sqlite db dump of metadata.db to do some other checks externally).
jindroush is offline   Reply With Quote