We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08070cd commit b95cf6eCopy full SHA for b95cf6e
1 file changed
kindlecomicconverter/comic2ebook.py
@@ -975,10 +975,11 @@ def getWorkFolder(afile, workdir=None):
975
manifest_dict[manifest_item.attrib.get('id')] = manifest_item.attrib.get('href')
976
ordered_image_paths = []
977
for i, spine_item in enumerate(spine):
978
- if spine_item not in manifest_dict:
+ try:
979
+ page_path = os.path.join(os.path.dirname(opf_path), manifest_dict[spine_item])
980
+ page = ET.parse(page_path)
981
+ except Exception:
982
continue
- page_path = os.path.join(os.path.dirname(opf_path), manifest_dict[spine_item])
- page = ET.parse(page_path)
983
imgs = page.findall(r'.//{*}img') + page.findall(r'.//{*}image')
984
985
largest_size = 0
0 commit comments