EPUB Output: Add a warning if the generated EPUB has no Table of Contents

This commit is contained in:
Kovid Goyal 2010-05-06 12:03:25 -06:00
parent a4eef46ff0
commit 1843490897

View File

@ -171,6 +171,10 @@ class EPUBOutput(OutputFormatPlugin):
self.workaround_sony_quirks() 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 from calibre.ebooks.oeb.base import OPF
identifiers = oeb.metadata['identifier'] identifiers = oeb.metadata['identifier']
uuid = None uuid = None