mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1984847 [[Deprecated] FutureWarning epub_output.py](https://bugs.launchpad.net/calibre/+bug/1984847)
This commit is contained in:
parent
b56b524a78
commit
b0c95d4e61
@ -299,7 +299,7 @@ class EPUBOutput(OutputFormatPlugin):
|
||||
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 = (nav_href, existing_nav) if existing_nav and nav_href else None
|
||||
previous_nav = (nav_href, existing_nav) if existing_nav is not None 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…
x
Reference in New Issue
Block a user