Update script.py
Mark duplicate files as being downloaded to prevent them from being downloaded again
This commit is contained in:
parent
79078d8e0b
commit
5f7a69cdd9
|
@ -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")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue