Hi Kevin,
Quote:
Originally Posted by KevinH
Have you tested the new mobi_split code to make sure that it is still building mobi7 and azw3 pieces completely correctly? I have not had time to look it over yet, but if you are sure, I will include it.
|
I have tested with 10 mobi files, 2 of which have HD images and 1 of which has no RESC. The splitted files are identical to ones generated by older mobi_split.py.
I have fixed a bug in taginfo_toxml() of mobi_k8resc.py and modified mobi_header.py.
Quote:
I also want to remove the mistaken "file-as" EXTH values in mobi-header.py and set a few new values I have found so as not to confuse others who might use this code as the basis for their own.
|
I have changed to
508 : 'Unknown_Title_Furigana?_(508)',
517 : 'Unknown_Creator_Furigana?_(517)',
522 : 'Unknown_Publisher_Furigana?_(522)',
in dump_contexth(cpage, extheader).
Those in class MobiHeader are not changed.
Quote:
hopefully have dealt with CoverOffset's that are 0xffffffff as well (given your earlier post on that subject).
|
I have modified this part too since int('0xffffffff') cannot convert to an long integer.
Code:
>>> int('0xffffffff')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '0xffffffff'
>>>
I attach a patch. Hopefully, it is the final patch!
BTW,
prefs.py has CRLF line ending instead of LF.
Take care,
tkeo