View Single Post
Old 04-01-2009, 11:06 AM   #5
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by pdurrant View Post
I think there must be a bug in your software when reading the EXTH header.

I've checked carefully, and this book has 13 EXTH records, including coveroffset, hasfakecover and thumboffset.

In addition, my QuickLook plug-in finds and displays the cover correctly.

Note that your output shows multiple 118 EXTH entries. I suspect that you're not handling 118 correctly, and accidentally re-reading the same EXTH record over and over.
Paul, you are right about a bug in my mobi decode routines I lifted from Mobiperl.

Mobi2html.exe (v.0.0.41) properly finds those EXTH entries that my software is missing, namely:
Code:
FULLFILENAME: On the Banks of Plum Creek.prc
FILENAME: On the Banks of Plum Creek.prc
UNPACK DIRECTORY: unpacked
Name: On_the_Banks_of_Plum_Creek
Version: 0
Type: BOOK
Creator: MOBI
baktime: -2082844800
Number of record: 102
PDHEADER  Version: 2
PDHEADER   Length: 361807
PDHEADER NRecords: 89
PDHEADER  Recsize: 4096
PDHEADER  Unknown: 0
MOBIHEADER doctype: MOBI
MOBIHEADER  length: 232
MOBIHEADER    type: 2
MOBIHEADER   codep: 1252
MOBIHEADER  uniqid: 2170653774
MOBIHEADER     ver: 4
MOBIHEADER exthflg: 80
EXTH doctype: EXTH
EXTH  length: 244
EXTH n_items: 13
ITEM: 64 1d - 100 29 - Wilder, Laura Ingalls
ITEM: 6e 11 - 110 17 - JUV000000
ITEM: 69 18 - 105 24 - Juvenile Fiction
ITEM: 76 9 - 118 9 - 0
ITEM: 77 b - 119 11 - USD
ITEM: 12c 3a - 300 58 - 0x1000000000000008002000000000000000f4edecbe409340944099
4098409c409d40a6
ITEM: cc c - 204 12 - 0x0002
ITEM: cd c - 205 12 - 0x0004
ITEM: ce c - 206 12 - 0x0002
ITEM: cf c - 207 12 - 0x00029
ITEM: c9 c - 201 12 - 0x0008
ITEM: cb c - 203 12 - 0x0000
ITEM: ca c - 202 12 - 0x0009
Version: 2 - 2 -  DOC_COMPRESSED
Looking for filepos
Found all filepos
Adding name attributes
Fixing filpos attribute
Thanks for the heads up!

And, Patricia, pardon the intrusion. I've got some debugging to do now...
nrapallo is offline   Reply With Quote