mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9689cb7c6e
commit
2d9d124fd6
@ -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', 'original_azw3'}
|
ebook = (AZW3Container if path.rpartition('.')[-1].lower() in {'azw3', 'mobi', 'original_azw3', 'original_mobi'}
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user