Fixed typo.
This commit is contained in:
parent
4d62b8a643
commit
43470c0e72
1 changed files with 2 additions and 1 deletions
|
@ -109,10 +109,11 @@ def getimgs(girls):
|
||||||
cleanup()
|
cleanup()
|
||||||
|
|
||||||
def dlimgs(girl, album, url):
|
def dlimgs(girl, album, url):
|
||||||
path = os.path.join(os.path.abspath('./suicidegirls', girl)
|
path = os.path.join(os.path.abspath('suicidegirls'), girl)
|
||||||
path = os.path.join(path, album)
|
path = os.path.join(path, album)
|
||||||
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)))
|
||||||
|
filename = filename.strip()
|
||||||
print("Looking at: " + str(url))
|
print("Looking at: " + str(url))
|
||||||
if os.path.exists(filename.strip()) == True:
|
if os.path.exists(filename.strip()) == True:
|
||||||
print("File: " + str(filename) + " already downloaded, skipping!")
|
print("File: " + str(filename) + " already downloaded, skipping!")
|
||||||
|
|
Loading…
Add table
Reference in a new issue