append jpg if there isnt one for single image

This commit is contained in:
Kevin F 2021-10-03 23:09:58 +00:00
parent 7f94aae555
commit bd532c6c66

View File

@ -34,6 +34,10 @@ def get(url: str, write_dir: str, delete=True):
album = True
if not url.endswith("blog"):
url += "/layout/blog"
else:
if url.endswith("jpeg") and not url.endswith("jpg") and not url.endswith("png"):
url += ".jpg"
if not album:
print('Getting img', url)