Skip to content

Bulk asynchronous downloader for multiple file hosts

Try and get anonfiles to work better.

Jules-WinnfieldX7cf5c3d3f673
diff --git a/cyberdrop_dl/utils/downloaders.py b/cyberdrop_dl/utils/downloaders.py
index 0d782cd89..7e4cebf41 100644
--- a/cyberdrop_dl/utils/downloaders.py
+++ b/cyberdrop_dl/utils/downloaders.py
@@ -81,7 +81,7 @@ class Downloader:
self.max_workers = max_workers
self._semaphore = asyncio.Semaphore(max_workers)
- self.delay = {'cyberfile.is': 1}
+ self.delay = {'cyberfile.is': 1, 'anonfiles.com': 1}
self.throttle_times = {}
"""Changed from aiohttp exceptions caught to FailureException to allow for partial downloads."""
@@ -319,7 +319,7 @@ async def get_downloaders(Cascade: CascadeItem, folder: Path, attempts: int, dis
for domain, domain_obj in Cascade.domains.items():
max_workers = threads if threads != 0 else multiprocessing.cpu_count()
- if 'bunkr' in domain or 'pixeldrain' in domain:
+ if 'bunkr' in domain or 'pixeldrain' in domain or 'anonfiles' in domain:
max_workers = 3 if (max_workers > 3) else max_workers
for title, album_obj in domain_obj.albums.items():
downloader = Downloader(album_obj, cookie_jar=cookie_jar, title=title, folder=folder,