mirror of https://gitlab.com/bashrc2/epicyon
Check that url contains slash
parent
826cef3372
commit
88fe018f1b
5
inbox.py
5
inbox.py
|
@ -169,7 +169,10 @@ def _cache_svg_images(session, base_dir: str, http_prefix: str,
|
|||
continue
|
||||
if '://' + i2p_domain in url:
|
||||
continue
|
||||
filename = url.split('/')[-1]
|
||||
if '/' in filename:
|
||||
filename = url.split('/')[-1]
|
||||
else:
|
||||
filename = url
|
||||
image_filename = \
|
||||
base_dir + '/media/' + post_id + '_' + filename
|
||||
if not download_image(session, base_dir, url,
|
||||
|
|
Loading…
Reference in New Issue