From 26756461307c51b1c86fd4191b11d6688740a79b Mon Sep 17 00:00:00 2001 From: Ronald Farrer Date: Tue, 20 Apr 2021 13:12:29 -0700 Subject: [PATCH] Fixed logic in image downloader. --- sgspider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgspider.py b/sgspider.py index 7db867e..0300c71 100644 --- a/sgspider.py +++ b/sgspider.py @@ -114,7 +114,7 @@ def dlimgs(girl, album, url): os.makedirs(path, exist_ok=True) filename = os.path.join(path, re.sub('(.*)/', "", os.path.join(path, url))) print("Looking at: " + str(url)) - if os.path.exists(filename): + if os.path.exists(filename) == True: print("File: " + str(filename) + " already downloaded, skipping!") return else: