Fixed logic in image downloader.

This commit is contained in:
Ronald Farrer 2021-04-20 13:12:29 -07:00
parent adcac0da50
commit 2675646130

View file

@ -114,7 +114,7 @@ def dlimgs(girl, album, url):
os.makedirs(path, exist_ok=True) os.makedirs(path, exist_ok=True)
filename = os.path.join(path, re.sub('(.*)/', "", os.path.join(path, url))) filename = os.path.join(path, re.sub('(.*)/', "", os.path.join(path, url)))
print("Looking at: " + str(url)) print("Looking at: " + str(url))
if os.path.exists(filename): if os.path.exists(filename) == True:
print("File: " + str(filename) + " already downloaded, skipping!") print("File: " + str(filename) + " already downloaded, skipping!")
return return
else: else: