mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1100 (LRF Conversion Error)
This commit is contained in:
parent
827ee34f35
commit
5fa80a52a9
@ -28,7 +28,10 @@ class ManifestItem(Resource):
|
|||||||
if item.has_key('href'):
|
if item.has_key('href'):
|
||||||
href = item['href']
|
href = item['href']
|
||||||
if unquote(href) == href:
|
if unquote(href) == href:
|
||||||
href = quote(href)
|
try:
|
||||||
|
href = quote(href)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
res = ManifestItem(href, basedir=basedir, is_path=False)
|
res = ManifestItem(href, basedir=basedir, is_path=False)
|
||||||
mt = item.get('media-type', '').strip()
|
mt = item.get('media-type', '').strip()
|
||||||
if mt:
|
if mt:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user