mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 09:26:45 +01:00
Conversion: Fix a regression i nthe previous release that caused conversion of EPUB 3 to EPUB 3 to fail. Fixes #1779518 [failed: Convert book n of n](https://bugs.launchpad.net/calibre/+bug/1779518)
This commit is contained in:
parent
774890af68
commit
38ce6eb3e5
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ def upgrade_to_epub3(self, tdir, opf):
|
|||
from calibre.ebooks.oeb.polish.upgrade import epub_2_to_3
|
||||
existing_nav = getattr(self.opts, 'epub3_nav_parsed', None)
|
||||
nav_href = getattr(self.opts, 'epub3_nav_href', None)
|
||||
previous_nav = (existing_nav, nav_href) if existing_nav and nav_href else None
|
||||
previous_nav = (nav_href, existing_nav) if existing_nav and nav_href else None
|
||||
epub_2_to_3(container, self.log.info, previous_nav=previous_nav)
|
||||
fix_conversion_titlepage_links_in_nav(container)
|
||||
container.commit()
|
||||
|
|
|
|||
Loading…
Reference in a new issue