mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #6240 (Error during conversion of CHM in Calibre 0.7.9)
This commit is contained in:
parent
dd2b65c387
commit
df5b96092f
@ -177,6 +177,7 @@ class CHMInput(InputFormatPlugin):
|
|||||||
|
|
||||||
chapter_path = None
|
chapter_path = None
|
||||||
if match_string(node.tag, 'object') and match_string(node.attrib['type'], 'text/sitemap'):
|
if match_string(node.tag, 'object') and match_string(node.attrib['type'], 'text/sitemap'):
|
||||||
|
chapter_title = None
|
||||||
for child in node:
|
for child in node:
|
||||||
if match_string(child.tag,'param') and match_string(child.attrib['name'], 'name'):
|
if match_string(child.tag,'param') and match_string(child.attrib['name'], 'name'):
|
||||||
chapter_title = child.attrib['value']
|
chapter_title = child.attrib['value']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user