append jpg if there isnt one for single image
This commit is contained in:
parent
7f94aae555
commit
bd532c6c66
@ -34,6 +34,10 @@ def get(url: str, write_dir: str, delete=True):
|
|||||||
album = True
|
album = True
|
||||||
if not url.endswith("blog"):
|
if not url.endswith("blog"):
|
||||||
url += "/layout/blog"
|
url += "/layout/blog"
|
||||||
|
else:
|
||||||
|
if url.endswith("jpeg") and not url.endswith("jpg") and not url.endswith("png"):
|
||||||
|
url += ".jpg"
|
||||||
|
|
||||||
|
|
||||||
if not album:
|
if not album:
|
||||||
print('Getting img', url)
|
print('Getting img', url)
|
||||||
|
Loading…
Reference in New Issue
Block a user