mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1815. Don't re-decode unicode metadata.opf2 @hrefs.
This commit is contained in:
parent
dcd258b52b
commit
3392459c27
@ -74,7 +74,9 @@ def check_links(opf_path, pretty_print):
|
||||
html_files = []
|
||||
for item in opf.itermanifest():
|
||||
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)))
|
||||
|
||||
for path in html_files:
|
||||
|
Loading…
x
Reference in New Issue
Block a user