View Single Post
Old 11-17-2008, 11:17 AM   #12
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 30,799
Karma: 85457880
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
These changes were my first attempt at a fix for the 0.02 script. They do allow the script to work on more files, but it isn't a complete solution.

Instead, you should apply (to the 0.02 script) my second set of changes, detailed here:

http://www.mobileread.com/forums/sho...&postcount=125


Quote:
Originally Posted by Leep View Post
Use the Python WinEditor and make the following changes to your script where you see:

flags >>= 1
[Tab]while flags:
[Tab][Tab]if flags & 1:
[Tab][Tab][Tab]num += getSizeOfTrailingDataEntry(ptr, size - num)
[Tab][Tab]flags >>= 1
[Tab}return num

It should read:
flags >>= 1
#[Tab]while flags:
[Tab]if flags & 1:
[Tab][Tab]num += getSizeOfTrailingDataEntry(ptr, size - num)
[Tab]flags >>= 1
[Tab]return num


cheers
pdurrant is offline   Reply With Quote