View Single Post
Old 09-17-2011, 10:09 AM   #214
fandrieu
Member
fandrieu began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2011
Device: kindle 3
@kovid: thanks very much for your great app !

@sieberd: thanks for the info, i'll look into it.

Quote:
Originally Posted by DiapDealer View Post
I can't find where it's happening for the life of me, but something in your code is doubling the html output.
I found a file to debug that
Here's a fixed version including the typos mentioned earlier.

...

The bug was a weird collateral of the "ncx filepos anchor injection" code.
The duplication occured because an entry had -1 as filepos, meaning an extra large "dataList".

The cause was IDXT parsing, some files have an extra null entry at the end.

I added two checks to prevent both problems.

...

REUP: after posting that i realized it'd be better to use header['count'] to determine when to stop parsing IDXT...
Attached Files
File Type: zip mobiunpack_ncx_yetanother.zip (16.9 KB, 992 views)

Last edited by fandrieu; 09-17-2011 at 11:10 AM.
fandrieu is offline   Reply With Quote