[Kobo] Bad magic number for central directory
Hi, I've just bought a new Kobo H2O, and am transferring all my books at once. However when I try this, it fails out with the following error log:
calibre, version 5.10.1
ERROR: Error: Error communicating with device
Error -3 while decompressing data: invalid stored block lengths
Traceback (most recent call last):
File "calibre\ebooks\oeb\polish\container.py", line 1183, in __init__
File "calibre\utils\zipfile.py", line 775, in __init__
File "calibre\utils\zipfile.py", line 810, in _GetContents
File "calibre\utils\zipfile.py", line 850, in _RealGetContents
calibre.utils.zipfile.BadZipfile: Bad magic number for central directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre\gui2\device.py", line 89, in run
File "calibre\gui2\device.py", line 592, in _upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 406, in upload_books
File "calibre\devices\kobo\driver.py", line 2129, in upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 217, in _modify_epub
File "calibre_plugins.kobotouch_extended.container" , line 129, in __init__
File "calibre\ebooks\oeb\polish\container.py", line 1190, in __init__
File "calibre\utils\localunzip.py", line 253, in extractall
File "calibre\utils\localunzip.py", line 235, in _extractall
File "calibre\utils\localunzip.py", line 180, in copy_compressed_file
zlib.error: Error -3 while decompressing data: invalid stored block lengths
I'm assuming it's a corrupted book, because if I start going a few books at a time, they transfer fine. However I've got several thousand books, and by trying to transfer a few hundred at a time, it's clear that this error occurs with several books. So how do I work out which book it is? The only alternative is to transfer 2-3 books at a time, which will take ages!!
|