mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 04:05:07 +01:00
Fix #1100 (LRF Conversion Error)
This commit is contained in:
parent
827ee34f35
commit
5fa80a52a9
1 changed files with 4 additions and 1 deletions
|
|
@ -28,7 +28,10 @@ def from_opf_manifest_item(item, basedir):
|
|||
if item.has_key('href'):
|
||||
href = item['href']
|
||||
if unquote(href) == href:
|
||||
href = quote(href)
|
||||
try:
|
||||
href = quote(href)
|
||||
except KeyError:
|
||||
pass
|
||||
res = ManifestItem(href, basedir=basedir, is_path=False)
|
||||
mt = item.get('media-type', '').strip()
|
||||
if mt:
|
||||
|
|
|
|||
Loading…
Reference in a new issue