A slight hiccup while trying to remove calibre_bookmarks.
Several files failed with the following:
ERROR: Traceback (most recent call last):
File "calibre_plugins.modify_epub.modify", line 81, in process_book
File "calibre_plugins.modify_epub.container", line 109, in write
File "site-packages\calibre\utils\zipfile.py", line 1208, in write
File "site-packages\calibre\utils\zipfile.py", line 370, in FileHeader
error: ushort format requires 0 <= number <= USHRT_MAX
Oddly, they're epubs where all the stored files are all lacking timestamps
I have a sinking feeling this is related to your patch to preserve the timestamps (and some peculiar epub makers).
More:
tweak epub also chokes on these:
calibre, version 0.8.4
ERROR: Unhandled exception: <b>error</b>:ushort format requires 0 <= number <= USHRT_MAX
Traceback (most recent call last):
File "site-packages\calibre\gui2\dialogs\tweak_epub.py", line 108, in preview
File "site-packages\calibre\gui2\dialogs\tweak_epub.py", line 86, in do_rebuild
File "zipfile.py", line 1071, in write
File "zipfile.py", line 348, in FileHeader
error: ushort format requires 0 <= number <= USHRT_MAX