mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 00:43:32 +02:00
Fix #6240 (Error during conversion of CHM in Calibre 0.7.9)
This commit is contained in:
parent
dd2b65c387
commit
df5b96092f
1 changed files with 1 additions and 0 deletions
|
|
@ -177,6 +177,7 @@ def _visit_node(self, node, chapters, depth):
|
|||
|
||||
chapter_path = None
|
||||
if match_string(node.tag, 'object') and match_string(node.attrib['type'], 'text/sitemap'):
|
||||
chapter_title = None
|
||||
for child in node:
|
||||
if match_string(child.tag,'param') and match_string(child.attrib['name'], 'name'):
|
||||
chapter_title = child.attrib['value']
|
||||
|
|
|
|||
Loading…
Reference in a new issue