Update backend.py

This commit is contained in:
Surferlul 2020-12-05 14:00:35 +01:00
parent ccd69f417b
commit dd4d311eca

View File

@ -55,7 +55,7 @@ try:
if submission.url.split("/")[-1].split(".")[-1] not in ["jpg", "jpeg", "png"]:
print("Downoading", submission.url)
else:
print("Downoading", submission.url, "as", submission.url.split("\\")[-1])
print("Downoading", submission.url, "as", submission.url.split("/")[-1])
ImgurDownloader(
submission.url,
"./Images/",
@ -106,4 +106,4 @@ try:
except NoImage:
print("Error: Url doesn't point to an Image")
except Exception as E:
print("Error: " + type(E).__name__)
print("Error: " + type(E).__name__)