Fixed logic in image downloader.
This commit is contained in:
parent
adcac0da50
commit
2675646130
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue