From 43470c0e7262c78702c7c79bf9b3ac4e65f5afe4 Mon Sep 17 00:00:00 2001 From: Ronald Farrer Date: Thu, 22 Apr 2021 07:28:17 -0700 Subject: [PATCH] Fixed typo. --- sgspider.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sgspider.py b/sgspider.py index d1c663c..9f77b0b 100644 --- a/sgspider.py +++ b/sgspider.py @@ -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!")