From 09a28b764a665106cd512d7d0d49c1ae7aedbad3 Mon Sep 17 00:00:00 2001 From: Ronald Farrer Date: Tue, 20 Apr 2021 14:31:22 -0700 Subject: [PATCH] Updated logic in image downloader. --- sgspider.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sgspider.py b/sgspider.py index 0300c71..488019d 100644 --- a/sgspider.py +++ b/sgspider.py @@ -117,8 +117,7 @@ def dlimgs(girl, album, url): if os.path.exists(filename) == True: print("File: " + str(filename) + " already downloaded, skipping!") return - else: - print("File: " + str(filename) + " not downloaded, downloading now!") + print("File: " + str(filename) + " not downloaded, downloading now!") response = requests.get(url, stream=True) with open(filename, 'wb') as out_file: shutil.copyfileobj(response.raw, out_file)