mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 06:26:21 +02:00
Fix #2835 (Cover images not being sent to Kindle and mobi files not converting)
This commit is contained in:
parent
7afc38ba2c
commit
f930919523
1 changed files with 6 additions and 1 deletions
|
|
@ -1957,6 +1957,12 @@ def _generate_ctoc(self):
|
|||
# Test to see if this child's offset is the same as the previous child's
|
||||
# offset, skip it
|
||||
h = child.href
|
||||
first = False
|
||||
|
||||
if h is None:
|
||||
self._oeb.logger.warn(' Ignoring TOC entry with no href:',
|
||||
child.title)
|
||||
continue
|
||||
currentOffset = self._id_offsets[h]
|
||||
# print "_generate_ctoc: child offset: 0x%X" % currentOffset
|
||||
|
||||
|
|
@ -1967,7 +1973,6 @@ def _generate_ctoc(self):
|
|||
else :
|
||||
self._oeb.logger.warn(" Ignoring redundant href: %s in '%s'" % (h, child.title))
|
||||
|
||||
first = False
|
||||
else :
|
||||
if self.opts.verbose > 2 :
|
||||
self._oeb.logger.info("skipping class: %s depth %d at position %d" % \
|
||||
|
|
|
|||
Loading…
Reference in a new issue