03-08-2012, 11:39 AM | #1 |
Grand Sorcerer
Posts: 27,941
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
[GUI Plugin] KindleUnpack - The Plugin
(formerly MobiUnpack - The Plugin: changed 1/29/2013)
Used to unpack/inspect the contents of DRM-free Kindle Books/MOBI files. KindleUnpack (formerly MobiUnpack) has existed as a standalone python tool for quite some time. Its purpose is to unpack the contents of DRM-free Kindle Books or MOBI files into their source components—all the while trying to maintain as much of the original metadata as humanly possible. This is useful for tweaking existing Kindle Books or MOBIs with the intention of rebuilding with kindlegen... as well as simply being a tool for studying the internals of Kindle Books or MOBI files in general. It has the ability to extract the data from standard MOBIs, KF8s, Joint MOBI/KF8s, Print Replicas (AZW4), and has some limited (experimental) support for processing MOBI dictionaries (Provided they are DRM-free of course). KindleUnpack has been contributed to by numerous people over time (pdurrant, KevinH and myself among them), so I'm only claiming responsibility for building the plugin around it. The original MobileRead thread that documents the evolution of the core of this plugin can be found here. The latest versions of that stand-alone tool can be found in this post. Main Features of KindleUnpack - The Plugin:
Special Notes:
Installation Steps:
Configuration:
Github Repository for the plugin code/releases Version History: Spoiler:
Last edited by DiapDealer; 01-06-2022 at 11:24 AM. |
03-08-2012, 03:21 PM | #2 |
Wizard
Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
thanks for this.
works great |
Advert | |
|
03-24-2012, 07:55 AM | #3 |
Grand Sorcerer
Posts: 27,941
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Updated plugin to use the latest changes in the stand-alone mobi_unpack tool. Which included various bugfixes related to anchor placement and compressed/embedded fonts.
Now at version 0.4.7 |
04-02-2012, 05:21 PM | #4 |
reader, ebook junkie
Posts: 110
Karma: 436806
Join Date: Dec 2007
Location: western nebraska
Device: in use kindle oasis 2nd and 3rd gen, kobo forma, boox poke5
|
I wanted to make sure that I'm interpreting the results of mobiunpack correctly.
I'm basically using mobiunpack to tell if my imported file is mobi8 or mobi7 as I'm not able to tell by looking at the kindle content file and/or the calibre file without using something like mobi meta editor and looking at the file heading. If mobi7, mobiunpack offers me only the unpack option. If mobi8, then mobiunpack offers unpack and KF8 to epub options. If the file is mobi8 and I want to send it to my e-ink kindle then I would need to either download from amazon or convert mobi to mobi. Conversion results in a mobi file (mobi7) and orig_mobi (mobi8). As long as I don't delete the orig_mobi file then I have still have access to the kf8 file if I use the restore original feature. Ok, am I making this too hard? Is there an easier way to determine if a file is mobi7 or mobi8 then using MobiUnpack? Thanks! |
04-03-2012, 07:38 AM | #5 | |||
Grand Sorcerer
Posts: 27,941
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
Quote:
|
|||
Advert | |
|
05-11-2012, 03:39 PM | #6 |
Grand Sorcerer
Posts: 6,681
Karma: 86234809
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Would you please update the plugin to reflect the newer version of
Mobi_Unpack (050)? Also, since Calibre now supports the extension AZW3 for KF8 files it would be nice if the plugin did also. |
05-15-2012, 03:17 PM | #7 |
Grand Sorcerer
Posts: 27,941
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I hope to do so very shortly.
|
05-19-2012, 08:21 PM | #8 |
reader, ebook junkie
Posts: 110
Karma: 436806
Join Date: Dec 2007
Location: western nebraska
Device: in use kindle oasis 2nd and 3rd gen, kobo forma, boox poke5
|
Is there a way to use "kf8 to epub" on more than 1 file at a time? I've tried selecting 2 to 3 files but the plugin only works on the last file selected in the group and ignores the others.
Thanks |
05-20-2012, 02:10 PM | #9 |
Grand Sorcerer
Posts: 27,941
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
That's just not going to be possible with the current structure of the plugin. Maybe if I get off my duff and learn how to submit jobs to calibre's scheduler via an interface plugin, I can overhaul the plugin. But until then, it's one at a time. Sorry.
Last edited by DiapDealer; 05-20-2012 at 02:30 PM. |
05-20-2012, 02:17 PM | #10 |
Grand Sorcerer
Posts: 27,941
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Updated plugin to use the latest changes in the stand-alone mobi_unpack tool. Updated the plugin to recognize AW3 files as valid input. Also changed the splitter feature so the KF8-only file is created with an AZW3 extension.
Now at version 0.5.0 |
05-20-2012, 03:17 PM | #11 |
reader, ebook junkie
Posts: 110
Karma: 436806
Join Date: Dec 2007
Location: western nebraska
Device: in use kindle oasis 2nd and 3rd gen, kobo forma, boox poke5
|
thanks for updating the plug-in.
no problem with the single job interface, I'm just happy to have mobiunpack as a plugin. |
06-11-2012, 11:47 AM | #12 |
Zealot
Posts: 116
Karma: 10
Join Date: Jun 2011
Location: Stockport, UK
Device: ipad, iphone, kindle
|
Got some MOBI files that Calibre just can't convert - thought your plugin might be the trick.
MUst say its a bit weird on first use - I right click the file, plugin is there, only option was to Customise Plugin - only by clicking other files did I realise it only offered options when it found a suitable MOBI file..... Maybe a note "Unable to unpack this file"?? So, I still have some files that are supposed to be MOBI and even your plugin won't touch - there is SOMETHING in them as opening in Notepad produces gibberish text. Not a biggie now as I am not interested in reading these downloads - just curiosity piqued as to why they can't be tweaked (and they're not DRM'd) (Even the eReader in Calibre won't deal with them!) |
06-15-2012, 04:44 AM | #13 |
MWYoung
Posts: 3
Karma: 10
Join Date: Jun 2012
Device: none
|
Hi folks,
Total noob to calibre and python and just about everything these days. Been at war for 20 years and just got back and discovered calibre for the thousands (I'm NOT kidding) of books on my various computers (9). Now, I'm attempting(!) to put all my books in one place and get them all in the same format--I don't care which format...(Oh, ya, that's gonna happen) However, I attempted to install your plugin (Mobi_Unpack_v050.zip) to calibre v0.8.56 (current version and by the usual install method) and got back the following: (open quote) calibre, version 0.8.56 ERROR: Unhandled exception: <b>InvalidPlugin</b>:The plugin in u'C:/Program Files/Calibre2/plugins2/Mobi_Unpack_v050.zip' is invalid. It does not contain a top-level __init__.py file Traceback (most recent call last): File "site-packages\calibre\gui2\preferences\plugins.py", line 306, in add_plugin File "site-packages\calibre\customize\ui.py", line 339, in add_plugin File "site-packages\calibre\customize\ui.py", line 54, in load_plugin File "site-packages\calibre\customize\zipplugin.py", line 160, in load File "site-packages\calibre\customize\zipplugin.py", line 255, in _locate_code InvalidPlugin: The plugin in u'C:/Program Files/Calibre2/plugins2/Mobi_Unpack_v050.zip' is invalid. It does not contain a top-level __init__.py file (close quote) I'm pretty sure calibre had me in mind when it generated this error...you know, book library trials and tribulations and all that (ISBN or LOCCN ordering?). Please relate to me what I've done wrong (this time!) and correct my bad behavior, please... TIA Mwyoung |
06-15-2012, 04:55 AM | #14 |
Calibre Plugins Developer
Posts: 4,678
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@mwyoung - welcome to MobileRead.
These sorts of errors happen when people forget to restart calibre after installing plugins. Make sure you restart it, then try the install again, restart calibre again and then try the plugin. If you still have issues it could be your calibre installation has an issue. Uninstall calibre (you will not lose your library), reinstall it, install the plugin and restart. Any time you install or update a plugin you must restart calibre - stick to that and you shouldn't have any issues like the above. @Kovid - I haven't tried calibre's plugin load option/plugin updater option lately, but if you haven't already done so already I wonder if we should fiddle things so users are given the "Restart now" dialog like they get if they make changes elsewhere in Preferences? |
06-15-2012, 05:34 AM | #15 |
creator of calibre
Posts: 44,380
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not all plugin types require calibre restarts. For example file type and conversion plugins do not. But I'm fine with having a restart prompt on the general principle that restarting after installing plugins is a good idea, to ensure everything is initialized properly.
|
Tags |
mobi2mobi |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] EpubMerge | JimmXinu | Plugins | 541 | 09-10-2024 11:05 AM |
[GUI Plugin] EpubSplit | JimmXinu | Plugins | 443 | 08-13-2024 03:20 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Ex Libris | AlPe | Plugins | 87 | 10-10-2020 03:10 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |