mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
commit
5dc3f770e3
@ -74,7 +74,9 @@ def check_links(opf_path, pretty_print):
|
|||||||
html_files = []
|
html_files = []
|
||||||
for item in opf.itermanifest():
|
for item in opf.itermanifest():
|
||||||
if 'html' in item.get('media-type', '').lower():
|
if 'html' in item.get('media-type', '').lower():
|
||||||
f = item.get('href').split('/')[-1].decode('utf-8')
|
f = item.get('href').split('/')[-1]
|
||||||
|
if isinstance(f, str):
|
||||||
|
f = f.decode('utf-8')
|
||||||
html_files.append(os.path.abspath(content(f)))
|
html_files.append(os.path.abspath(content(f)))
|
||||||
|
|
||||||
for path in html_files:
|
for path in html_files:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user