Skip to content

Bulk asynchronous downloader for multiple file hosts

Update download_client.py

datawhores7f9b6fa08b33
diff --git a/cyberdrop_dl/clients/download_client.py b/cyberdrop_dl/clients/download_client.py
index 19356d9bd..1e312f423 100644
--- a/cyberdrop_dl/clients/download_client.py
+++ b/cyberdrop_dl/clients/download_client.py
@@ -161,10 +161,10 @@ class DownloadClient:
async def save_content(content: aiohttp.StreamReader) -> None:
await self._append_content(media_item, content, partial(manager.progress_manager.file_progress.advance_file, media_item.task_id))
-
downloaded = await self._download(domain, manager, media_item, save_content)
if downloaded:
media_item.partial_file.rename(media_item.complete_file)
+ hash=self.hasher.getfilehash(media_item.complete_file)
await self.mark_completed(media_item, domain)
return downloaded