Use phantomSet #11

This commit is contained in:
Mathieu PATUREL
2017-01-22 11:23:14 +11:00
parent c49ae26720
commit 0505ca30bc
6 changed files with 33 additions and 18 deletions

View File

@ -23,8 +23,8 @@ def replace_img_src_base64(html, basepath):
path, end = get_content_till(html, '"', start=index + len(tag_start))
if ''.join(path).startswith('data:image/'):
continue
if ''.join(path).startswith(tuple(get_settings().get('load_from_internet '
'_when_starts'))):
if ''.join(path).startswith(tuple(get_settings().get('load_from_internet' + \
'_when_starts', []))):
image = ImageManager.get(''.join(path))
image = image or loading