mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:35:18 +02:00
Fix #1815. Don't re-decode unicode metadata.opf2 @hrefs.
This commit is contained in:
parent
dcd258b52b
commit
3392459c27
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue