1
0
Fork 0
mirror of synced 2024-06-27 02:20:45 +12:00

Fix wrong logic

This commit is contained in:
Serene-Arc 2021-02-15 13:56:14 +10:00 committed by Ali Parlakci
parent 289f7e7447
commit f71a3c5326

View file

@ -197,7 +197,7 @@ class RedditDownloader:
if destination.exists():
logger.debug('File already exists: {}'.format(destination))
else:
if res.hash.hexdigest() not in self.master_hash_list and self.args.no_dupes:
if res.hash.hexdigest() not in self.master_hash_list and not self.args.no_dupes:
# TODO: consider making a hard link/symlink here
destination.parent.mkdir(parents=True, exist_ok=True)
with open(destination, 'wb') as file: