View Single Post
Old 06-06-2013, 02:30 PM   #162
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,647
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by mbmr View Post
Is there any way to either get this plugin to process multiple files or use it from the command line (see bottom of post), then at least can code a script around it to process multiple files
Asked and answered over the course of this thread. I'm frankly just not interested enough in the bulk unpacking of Kindle books to make the modifications to the plugin that would be necessary to accomplish it. Someone else will have to take up that cause.

Quote:
Originally Posted by mbmr View Post
Ok now im trying to find a way to determine the format of a file (kf8, awz4, mobi, topaz, htmlz ) etc from command line how does this plugin do it, im looking over the code now trying how it detects what format the book is

i suppose i could just to kindleunpack the file and see if it results in anything
Check out the utilities.py script. Specifically, the mobiProcessor class... and where it calls the MobiHeaderLight class. That's where the bulk of the work is done to determine what kind of Kindlebook it is.

And for what it's worth, this plugin and the htmlz format don't have a thing to do with each other. And it can't do anything with the topaz format other than tell you that a certain book is IN the topaz format.

Also, I have another "What's my MOBI?" python script that will tell you what's under the hood of most MOBI, PRC and the various other Kindlebook type ebook formats. Will work on individual files or entire folders/subfolders.
https://www.mobileread.com/forums/sho...d.php?t=192454

Last edited by DiapDealer; 06-06-2013 at 02:42 PM.
DiapDealer is offline   Reply With Quote