Quote:
Originally Posted by KevinH
Attached is an update to Mobi_Unpack_v0.45, a python 2.X program which works with both older mobi and newer KF8 mobi formats. It includes a Graphical User Interface frontend.
|
This is failing on the first KF8 I tried it on. So the problem may be at my end. I get the same failure using ebook-convert in Calibre 0.8.42, presumably from its version of the unpack code.
The ebook is asin B005IEGK5C (Turing's Cathedral: The Origins of the Digital Universe by George Dyson) and I downloaded it to K4PC version 1.9.1. The sample exhibits the problem. What I get is:
Code:
Conversion Log
Command = "python mobiunpack.py"
Mobi Path = "C:\Users\Alan\Documents\My Kindle Content\B005IEGK5C_EBSP.azw"
Output Path = "C:\Users\Alan\Documents\My eBooks\SOFTWARE\Mobi_Unpack_v045\Mobi_Unpack\Dyson_TC"
Options = "-d"
Please Wait ...
MobiUnpack 0.45
Copyright (c) 2009 Charles M. Hannum <root@ihack.net>
With Additions by P. Durrant, K. Hendricks, S. Siebert, fandrieu, DiapDealer, nickredding.
Unpacking Book...
Palm DB type: BOOKMOBI
Mobi Version: 8
Codec: utf-8
Title: Turing’s Cathedral: The Origins of the Digital Universe
Palmdoc compression
firstaddl 2c
ncxidx ffffffff
exth flags 1058
skelidx 27
dividx 24
othidx 29
fdst 86
Processing K8 format Ebook ...
Traceback (most recent call last):
File "lib\mobi_unpack.py", line 1184, in <module>
sys.exit(main())
File "lib\mobi_unpack.py", line 1172, in main
unpackBook(infile, outdir)
File "lib\mobi_unpack.py", line 736, in unpackBook
uncompressed_data = zlib.decompress(data, -15)
zlib.error: Error -3 while decompressing data: invalid block type
Warning: Unknown metadata with id 450 found
Warning: Unknown metadata with id 451 found
Warning: Unknown metadata with id 452 found
Warning: Unknown metadata with id 453 found
Warning: Unknown metadata with id 504 found
Warning: Unknown metadata with id 405 found
Warning: Unknown metadata with id 406 found
Warning: Unknown metadata with id 407 found
Warning: Unknown metadata with id 403 found
MetaData from EXTH
{'ISBN': ['978-0-307-90706-6'], '450 (hex)': ['00000000'], 'Title': ['Turing’s Cathedral: The Origins of the Digital Universe'], 'Clipping Limit': ['0'], 'Fake Cover': ['0'], 'sample': ['1'], 'Codec': ['utf-8'], 'Font Signature (hex)': ['8700008050000000000000000000008000200000000000000000000000000000edbbfde501bd01f801e701e102d307c64094409340994098409c409d40a240a640b240b340c442d8449e'], 'K8(129)_Masthead/Cover_Image': ['kindle:embed:0001'], 'ASIN': ['B005IEGK5C'], 'Language': ['en-us'], 'Watermark': ['atv:kin:1:e+ilN1YvGlfTYxKEpQ+nVyAtCJ25P7eAI016TPM0E2CyqOi+JBAC8IT4B1fZJb/5xbbW1Js0Pi7R8GfttVlALys7cjmnlad/5WHXjHHDYDIiwuQ2OfpX2S7OpUReCTUKdmIhbJ8DXHUGwjVVbRucJF4EvecYIrN+lZ+U/GPeUOc=:pAS3rR9WtVUcbXsGs/7UPtGGv9M='], 'Rights': ['Copyright © 2012 by George Dyson'], '451 (hex)': ['001e1bb0'], '452 (hex)': ['00000000'], '407 (hex)': ['0000000000000000'], 'StartOffset': ['9368'], 'ThumbOffset': ['89'], 'CDE Type': ['EBSP'], 'Publisher': ['Random House, Inc.'], '504 (hex)': ['423030354945474b3543'], 'Updated Title': ["Turing's Cathedral: The Origins of the Digital Universe"], 'Creator Software': ['301'], 'Tamper Proof Keys (hex)': ['01000000d000000001940000000191000000019500000001960000000197'], 'Published': ['2012-03-06'], 'Text to Speech Disabled': ['0'], 'Creator Major Version': ['2'], 'Creator': ['Dyson, George'], '403 (hex)': ['00'], '406 (hex)': ['0000000000000000'], '405 (hex)': ['00'], '453 (hex)': ['0001edab'], 'Creator Build Number': ['35749'], 'CoverOffset': ['7'], 'K8(125)_Count_of_Resources_Fonts_Images': ['9'], 'UniqueID': ['2698837455'], 'Creator Minor Version': ['2'], 'K8(131)_Unidentified_Count': ['4294967295'], 'Drm Ebookbase Book Id': ['0000000501507']}
Unpack raw markup language
Unpacking images, resources, fonts, etc
firstaddl is 44
num_sections is 136
K8Boundary is -1
Section is 44
extracting resource: resc00001.dat
Section is 45
extracting image: image00002.jpeg
Section is 46
Error: Unpacking Failed