Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
fix exceptions from hash_item_during_download
datawhores6301b659c276
diff --git a/cyberdrop_dl/clients/download_client.py b/cyberdrop_dl/clients/download_client.pyindex 8b70ef1c6..dfa550288 100644--- a/cyberdrop_dl/clients/download_client.py+++ b/cyberdrop_dl/clients/download_client.py@@ -190,9 +190,9 @@ class DownloadClient:async def handle_media_item_completion(self, media_item,downloaded=False) -> None:"""Sends to hash client to handle hashing and marks as completed/current download"""- await self._hash_client.hash_item_during_download(media_item.complete_file)+ await self._hash_client.hash_item_during_download(media_item)if downloaded or self.manager.config_manager.global_settings_data['Dupe_Cleanup_Options']['dedupe_already_downloaded']:- self.manager.path_manager.add_completed(media_item.completed)+ self.manager.path_manager.add_completed(media_item)"""~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"""diff --git a/cyberdrop_dl/clients/hash_client.py b/cyberdrop_dl/clients/hash_client.pyindex 56dd415c0..720be09aa 100644--- a/cyberdrop_dl/clients/hash_client.py+++ b/cyberdrop_dl/clients/hash_client.py@@ -56,8 +56,7 @@ class HashClient:async def hash_item_during_download(self,media_item:MediaItem):try:if self.manager.config_manager.global_settings_data['Dupe_Cleanup_Options']['hash_while_downloading']:- if self.manager.config_manager.global_settings_data['Dupe_Cleanup_Options']['hash_while_downloading']:- self.hash_item(media_item.completed_path)+ self.hash_item(media_item.complete_file)except Exception as e:await log(f"After media processing failed: {media_item.complete_file} with error {e}", 40)