View Single Post
Old 03-08-2012, 11:39 AM   #1
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: 27,549
Karma: 193191846
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:
  • Unpack the source components of DRM-free Kindle Books or MOBI files to an external directory (configured/chosen by the user).
  • Split Kindlegen 2 produced files into separate, stand-alone MOBI and KF8 ebooks.
  • Convert DRM-free KF8 ebooks to ePubs; and add to the calibre library.
  • Extract PDFs from DRM-free Print Replica ebooks (AZW4); and add to the calibre library.

Special Notes:
  • Requires calibre v0.8.60 or higher.

Installation Steps:
  • Download the attached zip file and install the plugin... add to context menu and/or toolbar... and restart Calibre as described in the Introduction to plugins thread.

Configuration:
  • From the Configure menu or the Customize plugin button... configure a "Default Unpack Directory."
  • If you want the plugin to automatically use the Default Unpack Directory, then check the "Always use the Default Unpack Directory" box. Otherwise, you will be prompted to choose a directory each time you unpack a MOBI.

Github Repository for the plugin code/releases

Version History:
Spoiler:
  • Version 0.83.1 - 6 January 2022 - Prepare for calibre 6 (PyQt6)
  • Version 0.83.0 - 28 December 2020 - Fix incorrect mobi header type in some magazines
  • Version 0.82.3 - 26 September 2020 - Fix mobi_split breakage introduced starting with calibre 5.0
  • Version 0.82.2 - 25 September 2020 - Fix rare error condition and allow plugin to be added to toolbars when a device is connected
  • Version 0.82.1 - 18 December 2019 - Update to use the latest upstream KindleUnpack core files and accommodate upcoming Python3 version of calibre
  • Version 0.81.5 - 29 July 2017 - Update to use the latest upstream KindleUnpack core files.
  • Version 0.81.4 - 5 March 2017 - Fix AZW3s being falsely presented as being splittable in calibre plugin menus.
  • Version 0.81.3 - 29 January 2017 - Try Latin-1 encoding on extra resc data (after UTF-8) before failing. Reduced code involved to get/patch core Kindleunpack files.
  • Version 0.81.2 - 7 September 2015 - (re)Fixed unicode user directory bug on Windows platform.
  • Version 0.81.1 - 17 May 2015 - Fixed unicode path issue in splitter on Windows platform.
  • Version 0.81.0 - 11 May 2015 - updated to latest core code (v0.80+).
  • Version 0.80.0 - 11 March 2015 - updated to experimental core code (v0.80).
  • Version 0.77.0 - 29 October 2014 - updated to latest core code (v0.77).
  • Version 0.75.0 - 15 September 2014 - updated to latest core code (v0.75).
  • Version 0.73.0 - 20 July 2014 - updated to latest core code (v0.73)/ported to work with Qt5.
  • Version 0.67.0 - 13 June 2014 - updated to latest core code (v0.67).
  • Version 0.65.0 - 26 April 2014 - updated to latest core code (v0.65).
  • Version 0.62.0 - 28 April 2013 - updated to latest core code (v0.62).
  • Version 0.61.0 - 29 January 2013 - Renamed KindleUnpack - The Plugin (21,801 downloads).
  • Version 0.54.1 - 14 October 2012 (15,760 downloads).
  • Version 0.5.4 - 13 September 2012 (6,430 downloads).
  • Version 0.5.1 - 18 June 2012 (10,412 downloads).
  • Version 0.5.0 - 20 May 2012 (4733 downloads).
  • Version 0.4.7 - 24 Mar 2012 (6783 downloads).
  • Version 0.4.5 - 08 Mar 2012 Initial version (2000+ downloads).
Attached Files
File Type: zip kindle_unpack_v0831_plugin.zip (99.7 KB, 45279 views)

Last edited by DiapDealer; 01-06-2022 at 11:24 AM.
DiapDealer is offline   Reply With Quote