Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Fix concurrency limitation (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
sargvfrtyh authored Nov 6, 2023
1 parent b6237f1 commit 5c86672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyberdrop_dl/downloader/downloader_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def check_free_space(required_space_gb: int, download_directory: Path) ->

def get_threads_number(args: Dict, domain: str) -> int:
threads = args["Runtime"]["max_concurrent_downloads_per_domain"] or multiprocessing.cpu_count()
if any(s in domain for s in ('bunkr')):
if any(s in domain for s in ('bunkr',)):
return min(threads, 1)
if any(s in domain for s in ('anonfiles', 'pixeldrain', 'cyberfile')):
return min(threads, 2)
Expand Down

0 comments on commit 5c86672

Please sign in to comment.