Fix #1354624 [Compare AZW3 to ORIGINAL_AZW3 gives ValueError Not a ZIP file](https://bugs.launchpad.net/calibre/+bug/1354624)

This commit is contained in:
Kovid Goyal 2014-08-09 08:44:59 +05:30
parent fc061bd566
commit 9689cb7c6e

View File

@ -1230,7 +1230,7 @@ class AZW3Container(Container):
def get_container(path, log=None, tdir=None, tweak_mode=False): def get_container(path, log=None, tdir=None, tweak_mode=False):
if log is None: if log is None:
log = default_log log = default_log
ebook = (AZW3Container if path.rpartition('.')[-1].lower() in {'azw3', 'mobi'} ebook = (AZW3Container if path.rpartition('.')[-1].lower() in {'azw3', 'mobi', 'original_azw3'}
else EpubContainer)(path, log, tdir=tdir) else EpubContainer)(path, log, tdir=tdir)
ebook.tweak_mode = tweak_mode ebook.tweak_mode = tweak_mode
return ebook return ebook