Commit graph

2 commits

Author SHA1 Message Date
Simon Bruder 2ad7f3a52e
cbz2ebook: Use mt map for opening image and zip
This apparently solves some weird issues with reading the zip file like

zlib.error: Error -3 while decompressing data: invalid block type
zlib.error: Error -3 while decompressing data: invalid distance too far back

Though it reduced the amount of times this happened, some files still
persistently refuse to be read by zipfile in parallel. In those cases,
using `-s` to force single-threading should be sufficient.
2021-07-11 11:27:57 +02:00
Simon Bruder bcfa304862
cbz2ebook: Replace with python implementation
It has multiple advantages:

 * It processes the images in memory, without writing intermediary files
 * It supports multithreading
 * It does not spawn an army of subprocesses
 * It shows a better progress bar
 * It is more robust
2021-07-11 11:12:28 +02:00