Fix wrong logic
This commit is contained in:
parent
289f7e7447
commit
f71a3c5326
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue