Skip to content

Bulk asynchronous downloader for multiple file hosts

keep prev must be True to delete the current file

datawhoresa98011aafce2
diff --git a/cyberdrop_dl/clients/hash_client.py b/cyberdrop_dl/clients/hash_client.py
index f3ed657b0..c27ea3aca 100644
--- a/cyberdrop_dl/clients/hash_client.py
+++ b/cyberdrop_dl/clients/hash_client.py
@@ -167,8 +167,8 @@ class HashClient:
continue
elif hash not in self.prev_hashes:
continue
- elif self.manager.config_manager.global_settings_data['Dupe_Cleanup_Options']['keep_prev_download']:
- send2trash(ele)
+ elif not self.manager.config_manager.global_settings_data['Dupe_Cleanup_Options']['keep_prev_download']:
+ continue
elif selected_file in self.manager.path_manager.prev_downloads_paths:
continue
else: