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: 71,366
Karma: 305065800
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
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 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