mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
17dde7b206
commit
596ba46590
@ -184,8 +184,7 @@ class XMLCache(object):
|
|||||||
'descendant::*[local-name()="png"]'):
|
'descendant::*[local-name()="png"]'):
|
||||||
if img.text:
|
if img.text:
|
||||||
raw = b64decode(img.text.strip())
|
raw = b64decode(img.text.strip())
|
||||||
ext = img.tag.split('}')[-1]
|
book.thumbnail = raw
|
||||||
book.cover_data = [ext, raw]
|
|
||||||
break
|
break
|
||||||
break
|
break
|
||||||
# }}}
|
# }}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user