mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
fc061bd566
commit
9689cb7c6e
@ -1230,7 +1230,7 @@ class AZW3Container(Container):
|
||||
def get_container(path, log=None, tdir=None, tweak_mode=False):
|
||||
if log is None:
|
||||
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)
|
||||
ebook.tweak_mode = tweak_mode
|
||||
return ebook
|
||||
|
Loading…
x
Reference in New Issue
Block a user