Fixed typo.

This commit is contained in:
Ronald Farrer 2021-04-22 07:28:17 -07:00
parent 4d62b8a643
commit 43470c0e72

View file

@ -109,10 +109,11 @@ def getimgs(girls):
cleanup()
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)
os.makedirs(path, exist_ok=True)
filename = os.path.join(path, re.sub('(.*)/', "", os.path.join(path, url)))
filename = filename.strip()
print("Looking at: " + str(url))
if os.path.exists(filename.strip()) == True:
print("File: " + str(filename) + " already downloaded, skipping!")