View Single Post
Old 05-15-2020, 03:58 PM   #850
dstaley
Member
dstaley began at the beginning.
 
dstaley's Avatar
 
Posts: 12
Karma: 10
Join Date: May 2020
Device: Kindle Voyage
Quote:
Originally Posted by jhowell View Post
Two different KPF files are never going to be exactly the same, even if they effectively have the same content. The date/time of conversion as well as some randomly generated data is present in those files.




Yes, that is what I would do. Use the command line interface of the KFX Input plugin with the "--unpack" option to convert each KPF to a ZIP file. Then do a diff on the "book.ion" files from each.

You can expect to see a few differences. The "book_id" and "asset_id" are randomly generated. The "asset_id" value can be expected to appear multiple times in the file. If there are other difference than those I can help you decode what they mean if you want.
Good news! It looks like the "book.ion" file is exactly the same, save for the IDs you mentioned.

Thank you so much for this awesome work! I do have one favor to ask: it'd be really nice if you could make a version of the plugins that work without Calibre. It looks like you're not depending on Calibre for much (I was able to get it to work without Calibre or its Python library with just a few tweaks). I think there's a lot of awesome stuff in both libraries that's not Calibre specific, and it'd be nice to have a general-purpose CLI for them. That way, you could have a non-Calibre specific base library, and then build on that for the Calibre-specific bits.

Regardless, I really appreciate all the work you've put into these libraries! Digging through the code has really shown how much effort this took, and I really appreciate it.
dstaley is offline   Reply With Quote