Skip to content

Bulk asynchronous downloader for multiple file hosts

Update hash_client.py

Jacob19b5d523efb0
diff --git a/cyberdrop_dl/clients/hash_client.py b/cyberdrop_dl/clients/hash_client.py
index 0f7b3c82e..95da32e71 100644
--- a/cyberdrop_dl/clients/hash_client.py
+++ b/cyberdrop_dl/clients/hash_client.py
@@ -83,7 +83,7 @@ class HashClient:
try:
if self.manager.config_manager.global_settings_data['Dupe_Cleanup_Options']['hash_while_downloading']:
await self.hash_item(media_item.complete_file, media_item.original_filename, media_item.referer
- )
+ )
except Exception as e:
await log(f"After hash processing failed: {media_item.complete_file} with error {e}", 40)
@@ -125,7 +125,7 @@ class HashClient:
if selected_file:
size_dict[size] = {'selected': selected_file,
- 'others': list(map(lambda x: str(x.absolute()), files))}
+ 'others': list(map(lambda x: str(x.absolute()), files))}
else:
del size_dict[size]
@@ -136,7 +136,7 @@ class HashClient:
# Get all matches from the database
all_matches = list(map(lambda x: pathlib.Path(x[0], x[1]),
- await self.manager.db_manager.hash_table.get_files_with_hash_matches(hash,
+ await self.manager.db_manager.hash_table.get_files_with_hash_matches(hash,
size)))
# Filter out files with the same path as any file in other_files