Skip to content

Bulk asynchronous downloader for multiple file hosts

set 1024 as the min allowed

johnsmih489b8689d2b9
diff --git a/cyberdrop_dl/managers/client_manager.py b/cyberdrop_dl/managers/client_manager.py
index 2b7820324..5b92c51de 100644
--- a/cyberdrop_dl/managers/client_manager.py
+++ b/cyberdrop_dl/managers/client_manager.py
@@ -121,6 +121,8 @@ class ClientManager:
raise DownloadFailure(status=status, message=f"HTTP status code {status}: {phrase}")
async def check_bucket(self,size):
+ if self.download_speed_limit<1024:
+ return
if not isinstance(size, int):
size=len(size)
await self._leaky_bucket.acquire(size)