1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-01-28 08:45:46 +01:00

Removed urlunquote

This commit is contained in:
2020-07-11 16:24:16 +02:00
parent 5fb02998a1
commit c82c4e456c
7 changed files with 29 additions and 40 deletions

View File

@@ -5,6 +5,7 @@ import re
import posixpath
import traceback
import uuid
import urllib.parse
from lxml import etree
@@ -438,7 +439,8 @@ class EPUBInput(InputFormatPlugin):
href, frag = elem.get('href').partition('#')[::2]
link_path = (os.path
.relpath(os.path
.join(base_path, base.urlunquote(href)),
.join(base_path,
urllib.parse.unquote(href)),
base_path))
abs_href = base.urlnormalize(link_path)
if abs_href == self.removed_cover: