mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
EPUB Output: Add a warning if the generated EPUB has no Table of Contents
This commit is contained in:
parent
a4eef46ff0
commit
1843490897
@ -171,6 +171,10 @@ class EPUBOutput(OutputFormatPlugin):
|
||||
|
||||
self.workaround_sony_quirks()
|
||||
|
||||
if self.oeb.toc.count() == 0:
|
||||
self.log.warn('This EPUB file has no Table of Contents. It will '
|
||||
'not validate via epubcheck')
|
||||
|
||||
from calibre.ebooks.oeb.base import OPF
|
||||
identifiers = oeb.metadata['identifier']
|
||||
uuid = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user