From 9689cb7c6e2da8630609e16fc216251a683051d3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 9 Aug 2014 08:44:59 +0530 Subject: [PATCH] Fix #1354624 [Compare AZW3 to ORIGINAL_AZW3 gives ValueError Not a ZIP file](https://bugs.launchpad.net/calibre/+bug/1354624) --- src/calibre/ebooks/oeb/polish/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/container.py b/src/calibre/ebooks/oeb/polish/container.py index 710cd0ce84..10ddcaeebd 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -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