Update script.py
Mark duplicate files as being downloaded to prevent them from being downloaded again
This commit is contained in:
1 parent
79078d8e0b
commit
5f7a69cdd9
1 file changed
+1
@@ -165,6 +165,7 @@ def download(submissions):
|
|||||||
|
|
||||||
except FileAlreadyExistsError:
|
except FileAlreadyExistsError:
|
||||||
print("It already exists")
|
print("It already exists")
|
||||||
|
GLOBAL.downloadedPosts.add(details['POSTID'])
|
||||||
duplicates += 1
|
duplicates += 1
|
||||||
|
|
||||||
except ImgurLoginError:
|
except ImgurLoginError:
|
||||||
|
|||||||
Reference in new issue
Block a user