Updated logic in image downloader.
This commit is contained in:
parent
2675646130
commit
09a28b764a
1 changed files with 1 additions and 2 deletions
|
@ -117,7 +117,6 @@ def dlimgs(girl, album, url):
|
||||||
if os.path.exists(filename) == True:
|
if os.path.exists(filename) == True:
|
||||||
print("File: " + str(filename) + " already downloaded, skipping!")
|
print("File: " + str(filename) + " already downloaded, skipping!")
|
||||||
return
|
return
|
||||||
else:
|
|
||||||
print("File: " + str(filename) + " not downloaded, downloading now!")
|
print("File: " + str(filename) + " not downloaded, downloading now!")
|
||||||
response = requests.get(url, stream=True)
|
response = requests.get(url, stream=True)
|
||||||
with open(filename, 'wb') as out_file:
|
with open(filename, 'wb') as out_file:
|
||||||
|
|
Loading…
Add table
Reference in a new issue