View Single Post
Old 12-25-2009, 05:58 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by tompe View Post
What I meant was that you first do "mobi2mobi oldfile.prc --outfile newfile.mobi" and then try to set the meta data on newfile.mobi.
I tried that too. Same result. Could the absence of cover after adding it be related to this piece of output?

Code:
EXTH    item: 203 - hasFakeCover - 4 - 0x0000
Quote:
But the error message is a bit strange. mobi2mobi seem to think that the file have EXTH headers since "if ($exthflg & 0x40)" seems to become true. And that should not happen if it is not a real MobiPocket file. So you could try to add "& false" to this if condition to see if that works.
Yes, it seems this files are problematic. How would I do the change? I tried with "if (($exthflg & 0x40) & false)", but I got:

Code:
Bareword "false" not allowed while "strict subs" in use at /home/ignacio/bin/mobiperl/mobi2mobi line 608.
Commenting out the "use strict" line gave me the same "Invalid type" message
Jellby is offline   Reply With Quote