Skip to content

Bulk asynchronous downloader for multiple file hosts

rename add_completed_hash

datawhorescd9b9885d56f
diff --git a/cyberdrop_dl/clients/hash_client.py b/cyberdrop_dl/clients/hash_client.py
index 7cead3e35..b3124ed9b 100644
--- a/cyberdrop_dl/clients/hash_client.py
+++ b/cyberdrop_dl/clients/hash_client.py
@@ -43,7 +43,7 @@ class HashClient:
try:
hash = await self.manager.hash_manager.hash_file(file)
await self.manager.db_manager.hash_table.insert_or_update_hash_db(hash, file.stat().st_size, file)
- await self.manager.progress_manager.hash_progress.add_completed_hash()
+ await self.manager.progress_manager.hash_progress.add_new_completed_hash()
except Exception as e:
await log(f"Error hashing {file} : {e}",40)
diff --git a/cyberdrop_dl/ui/progress/hash_progress.py b/cyberdrop_dl/ui/progress/hash_progress.py
index 664d64dfe..f0046be86 100644
--- a/cyberdrop_dl/ui/progress/hash_progress.py
+++ b/cyberdrop_dl/ui/progress/hash_progress.py
@@ -66,7 +66,7 @@ class HashProgress:
self.current_hashing_text.update(self.currently_hashing_size_task_id ,description=f"[blue]{format_size(file.stat().st_size)}")
- async def add_completed_hash(self) -> None:
+ async def add_new_completed_hash(self) -> None:
"""Adds a completed file to the progress bar"""
self.hash_progress.advance(self.hashed_files_task_id , 1)
self.hashed_files += 1