mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 07:43:08 +02:00
This commit is contained in:
parent
c5daec10f1
commit
be22c9a3b0
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue