From 4ce8db1fe287d065ad3369499d912468e0494a0a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 6 Jul 2016 11:52:13 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/conversion/plugins/epub_input.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/conversion/plugins/epub_input.py b/src/calibre/ebooks/conversion/plugins/epub_input.py index d305a1e9ca..af7a5e2380 100644 --- a/src/calibre/ebooks/conversion/plugins/epub_input.py +++ b/src/calibre/ebooks/conversion/plugins/epub_input.py @@ -120,7 +120,7 @@ class EPUBInput(InputFormatPlugin): removed = titlepage_href return removed - def rationalize_cover(self, opf, log): + def rationalize_cover2(self, opf, log): ''' Ensure that the cover information in the guide is correct. That means, at most one entry with type="cover" that points to a raster cover and at most one entry with type="titlepage" that points to an @@ -266,7 +266,7 @@ class EPUBInput(InputFormatPlugin): for elem in opf.iterguide(): elem.set('href', delta+elem.get('href')) - f = self.rationalize_cover3 if opf.package_version >= 3.0 else self.rationalize_cover + f = self.rationalize_cover3 if opf.package_version >= 3.0 else self.rationalize_cover2 self.removed_cover = f(opf, log) for x in opf.itermanifest():