quiris11 / ExtractCoverThumbs

Tool for recovering missing thumbnails in Cover View on Kindle e-ink devices
https://blog.blaut.biz
89 stars 12 forks source link

Ignore existing covers if size < 1024 #12

Closed wzyboy closed 3 years ago

wzyboy commented 3 years ago

For a newly added EBOK file, Kindle tries to fetch its cover from Amazon even when the cover already exists in /system/thumbnails. The process will replace the existing cover with a ~900 bytes tiny stub image with caption "image not available" in it. Overwriting the stub file with the correct cover again and Kindle will not try to destroy it. (See also: calibre FAQ)

This PR makes the code overwrite these stub files, so user does not have to use --overwrite-amzn-thumbs flag.