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

Commit

Permalink
limit bunkr to 1 simultaneous download.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Oct 30, 2023
1 parent 49d6571 commit 61bcf7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.2.214"
__version__ = "4.2.215"
4 changes: 3 additions & 1 deletion cyberdrop_dl/downloader/downloader_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ 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 ('anonfiles', 'bunkr', 'pixeldrain', 'cyberfile')):
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)
if any(s in domain for s in ('coomer', 'kemono')):
return min(threads, 8)
Expand Down

0 comments on commit 61bcf7d

Please sign in to comment.