mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
This commit is contained in:
parent
c5daec10f1
commit
be22c9a3b0
@ -1808,7 +1808,8 @@ def try_opf(path, options, logger):
|
||||
if not options.cover and orig_cover is not None:
|
||||
options.cover = orig_cover
|
||||
options.spine = [i.href for i in opf.spine.items()]
|
||||
options.toc = opf.toc
|
||||
if not hasattr(options, 'toc') or options.toc is None:
|
||||
options.toc = opf.toc
|
||||
except Exception:
|
||||
logger.exception('Failed to process opf file')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user