mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
When tweaking/polishing an azw3 file that does not have an identified content ToC, do not auto-generate one. Fixes #1130729 (azw3 files tweak will duplicate table of contents after rebuild)
This commit is contained in:
parent
725d81a296
commit
bdcc52206e
@ -60,7 +60,8 @@ class TOCAdder(object):
|
|||||||
else:
|
else:
|
||||||
oeb.guide.remove('toc')
|
oeb.guide.remove('toc')
|
||||||
|
|
||||||
if not self.has_toc or 'toc' in oeb.guide or opts.no_inline_toc:
|
if (not self.has_toc or 'toc' in oeb.guide or opts.no_inline_toc or
|
||||||
|
getattr(opts, 'mobi_passthrough', False)):
|
||||||
return
|
return
|
||||||
|
|
||||||
self.log('\tGenerating in-line ToC')
|
self.log('\tGenerating in-line ToC')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user