mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 20:24:34 +02:00
Book polishing: Fix EPUB files with corrupted ZIP central directories not working and leaving behind detritus in the current working directory. Fixes #1360385 [Debris left when polish books fails](https://bugs.launchpad.net/calibre/+bug/1360385)
This commit is contained in:
parent
b6579971b3
commit
683106fd89
1 changed files with 1 additions and 1 deletions
|
|
@ -927,7 +927,7 @@ def __init__(self, pathtoepub, log, clone_data=None, tdir=None):
|
|||
' more forgiving ZIP parser')
|
||||
from calibre.utils.localunzip import extractall
|
||||
stream.seek(0)
|
||||
extractall(stream)
|
||||
extractall(stream, path=tdir)
|
||||
try:
|
||||
os.remove(join(tdir, 'mimetype'))
|
||||
except EnvironmentError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue