Quote:
Originally Posted by tompe
If you just do mobi2mobi on the input file what is the output?
The error messages seems to indicated that an existing EXTH header should be in the data but when trying to set a value the data is to short. This is code patched by pdurrant so maybe he remember better what the code does and can give an idea about the problem.
|
Ah ha! I suspect you have hit the problem. This is not a "real' mobi file. This is a PDF that has been converted to a mobi file. So I am sure that it does not have a correct EXTH header. Would it be possible to somehow add/create this?
I suspcet the solution is that when creating the mobi via html2mobi (or whatever) one should remember to add the appropriate --title or --author flags at that time.
The output of mobi2mobi Book1.mobi is:
Merlin-2:books steve$ mobi2mobi Book1.mobi
Database Name: Unknown
Version: 0
Type: BOOK
Creator: MOBI
Seed: 144
Resdb:
AppInfoDirty:
ctime: -911426252 - Wed Feb 12 22:02:28 1941
mtime: -911423833 - Wed Feb 12 22:42:47 1941
baktime: -911423833 - Wed Feb 12 22:42:47 1941
---------------------------------------------------
---------------------------------------------------
START IMAGE INDEX: 128
COVER IMAGE INDEX: 0
PDHEADER Version: 1
PDHEADER Length: 522248
PDHEADER NRecords: 127
PDHEADER Recsize: 4096
PDHEADER Unknown: 2
MOBIHEADER doctype: MOBI
MOBIHEADER length: 0
MOBIHEADER booktype: 2 - BOOK
MOBIHEADER codep: 65001
MOBIHEADER uniqid: 1379812394
MOBIHEADER ver: 3
MOBIHEADER exthflg: 0
MOBIHEADER language: 0 - 0 - 0 - NEUTRAL -
LONGTITLE:
LASTID: 0
-----------------
- Steven