Quote:
Originally Posted by NiLuJe
@dhdurgee: Comment out the encryption check in KindleUnpack and/or directly use the kindleunpack version bundled with the hack.
|
Per your suggestion I commented out the encryption reject and got:
Code:
dhdurgee@DHD-Z560 ~/bin/KindleUnpack_v075/lib $ ./kindleunpack.py /media/dhdurgee/Kindle/documents/Asimov\ s\ Science\ Fiction-asin_B00T8JNGO6-type_MAGZ-v_1.azw /var/tmp
KindleUnpack v0.75
Based on initial mobipocket version Copyright © 2009 Charles M. Hannum <root@ihack.net>
Extensive Extensions and Improvements Copyright © 2009-2014
by: P. Durrant, K. Hendricks, S. Siebert, fandrieu, DiapDealer, nickredding, tkeo.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3.
Unpacking Book...
Palm DB type: BOOKMOBI, 124 sections.
Warning: Bad key, size, value combination detected in EXTH 406 16 0000000000000000
Unpacking a Mobipocket 6 book...
Processing Mobipocket 6 section of book...
Mobi Version: 6
Codec: utf-8
Title: Asimov's Science Fiction
EXTH Title: Asimov's Science Fiction
Huffdic compression
Book is encrypted
Unpacking images, resources, fonts, etc
Extracting image: image00110.jpeg from section 110
Extracting image: image00111.jpeg from section 111
Extracting image: image00112.jpeg from section 112
Extracting image: image00113.jpeg from section 113
Extracting image: image00114.jpeg from section 114
Extracting image: image00115.jpeg from section 115
Extracting image: image00116.jpeg from section 116
Extracting image: image00117.jpeg from section 117
Extracting image: cover00118.jpeg from section 118
Extracting image: image00119.jpeg from section 119
Unpacking raw markup language
Write ncx
Find link anchors
Insert data into html
Insert hrefs into html
Remove empty anchors from html
Insert image references into html
Error: Referenced image 0 was not recognized as a valid image
Error: Referenced image 0 was not recognized as a valid image
Error: Referenced image 0 was not recognized as a valid image
Error: Referenced image 0 was not recognized as a valid image
Error: Referenced image 0 was not recognized as a valid image
Error: Referenced image 0 was not recognized as a valid image
Error: Referenced image 0 was not recognized as a valid image
Error: Referenced image 0 was not recognized as a valid image
Building an opf for mobi7/azw4.
Completed
dhdurgee@DHD-Z560 ~/bin/KindleUnpack_v075/lib $
Looking in the target directory I see:
Code:
dhdurgee@DHD-Z560 ~/bin/KindleUnpack_v075/lib $ ls -l /var/tmp/mobi7/Images/
total 424
-rw-r--r-- 1 dhdurgee dhdurgee 36016 Feb 26 14:38 cover00118.jpeg
-rw-r--r-- 1 dhdurgee dhdurgee 36016 Feb 26 14:38 image00110.jpeg
-rw-r--r-- 1 dhdurgee dhdurgee 78272 Feb 26 14:38 image00111.jpeg
-rw-r--r-- 1 dhdurgee dhdurgee 26388 Feb 26 14:38 image00112.jpeg
-rw-r--r-- 1 dhdurgee dhdurgee 83056 Feb 26 14:38 image00113.jpeg
-rw-r--r-- 1 dhdurgee dhdurgee 15888 Feb 26 14:38 image00114.jpeg
-rw-r--r-- 1 dhdurgee dhdurgee 42304 Feb 26 14:38 image00115.jpeg
-rw-r--r-- 1 dhdurgee dhdurgee 47236 Feb 26 14:38 image00116.jpeg
-rw-r--r-- 1 dhdurgee dhdurgee 34532 Feb 26 14:38 image00117.jpeg
-rw-r--r-- 1 dhdurgee dhdurgee 13024 Feb 26 14:38 image00119.jpeg
dhdurgee@DHD-Z560 ~/bin/KindleUnpack_v075/lib $
So the images are there and I can view them. Is the problem that the name cover*.jpeg is unexpected?
Dave
PS: as a further test I ran the hacked version on one of the files:
Code:
dhdurgee@DHD-Z560 ~/bin/KindleUnpack_v075/lib $ ./kindleunpackhack.py /media/dhdurgee/Kindle/documents/Fantasy\ Science\ Fiction\ Extended-asin_B00TZI7G9Q-type_MAGZ-v_1.azw /var/tmp
MobiCover 0.4.N (ripped out of kindleunpack v0.66b)
Based on initial version Copyright © 2009 Charles M. Hannum <root@ihack.net>
Extensions / Improvements Copyright © 2009-2014 P. Durrant, K. Hendricks, S. Siebert, fandrieu, DiapDealer, nickredding, tkeo.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3.
Unpacking Book...
Palm DB type: BOOKMOBI, 176 sections.
Unpacking a Mobipocket 6 book...
Processing Mobipocket 6 section of book...
Book is encrypted
Mobi Version: 6
Codec: utf-8
Title: Fantasy & Science Fiction, Extended Edition
EXTH Title: Fantasy & Science Fiction, Extended Edition
Huffdic compression
Unpacking cover image
Extracting cover image: image00170.jpeg as cover_raw_B00TZI7G9Q.jpeg from section 170
Completed
dhdurgee@DHD-Z560 ~/bin/KindleUnpack_v075/lib $
As you can see it ran. So what is going wrong?
Dave