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:
https://www.mobileread.com/forums/sho...&postcount=125
Quote:
Originally Posted by Leep
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
|