From 5f7a69cdd9a792dcb94e547ded29b57ebf7a5dff Mon Sep 17 00:00:00 2001 From: ComradeEcho Date: Thu, 3 Dec 2020 19:20:20 -0600 Subject: [PATCH] Update script.py Mark duplicate files as being downloaded to prevent them from being downloaded again --- script.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.py b/script.py index 38c622c..80fd5a9 100644 --- a/script.py +++ b/script.py @@ -165,6 +165,7 @@ def download(submissions): except FileAlreadyExistsError: print("It already exists") + GLOBAL.downloadedPosts.add(details['POSTID']) duplicates += 1 except ImgurLoginError: @@ -362,4 +363,4 @@ if __name__ == "__main__": print(GLOBAL.log_stream.getvalue()) if not GLOBAL.arguments.quit: input("\nPress enter to quit\n") - \ No newline at end of file +