mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9bb34dffa3
commit
5e1d6d1618
@ -19,7 +19,7 @@ class DataURL(object):
|
||||
if not hasattr(root, 'xpath'):
|
||||
continue
|
||||
for img in attr_path(root):
|
||||
raw = img.get('src')
|
||||
raw = img.get('src', '')
|
||||
if not raw.startswith('data:'):
|
||||
continue
|
||||
header, data = raw.partition(',')[0::2]
|
||||
|
Loading…
x
Reference in New Issue
Block a user