View Single Post
Old 01-10-2025, 10:16 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,423
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Both use the exact same code to update metadata, so I don't see how they could possibly behave differently. Most likely updating metadata will shuffle some lines around since it works by first deleting metadata entries to reset and then creating them. Trying to make the updates in place or avoid the deletes completely is way too much work for me, patches welcome. KOReader really should be hashing only the spine and the actual content files, not the entire epub. Indeed simply unpacking and repacking an epub can yield a file with a different hash, but identical actual contents. This is because EPUB is a zip container and zip stores unused per file metadata such as timestamps. File has is absolutely the wrong way to be checking for file equality with EPUB.
kovidgoyal is offline   Reply With Quote