Merge pull request #171 from ComradeEcho/patch-1
Record duplicate downloaded files into the --downloaded-posts file
This commit is contained in:
@@ -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:
|
||||||
@@ -362,4 +363,4 @@ if __name__ == "__main__":
|
|||||||
print(GLOBAL.log_stream.getvalue())
|
print(GLOBAL.log_stream.getvalue())
|
||||||
|
|
||||||
if not GLOBAL.arguments.quit: input("\nPress enter to quit\n")
|
if not GLOBAL.arguments.quit: input("\nPress enter to quit\n")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user