From 61bcf7d06dc82801a9aea7bbb5985d578a1293a1 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Mon, 30 Oct 2023 08:37:55 -0600 Subject: [PATCH] limit bunkr to 1 simultaneous download. --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/downloader/downloader_utils.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index af9b31fe8..a06c02018 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "4.2.214" +__version__ = "4.2.215" diff --git a/cyberdrop_dl/downloader/downloader_utils.py b/cyberdrop_dl/downloader/downloader_utils.py index 9a993f350..446c276fa 100644 --- a/cyberdrop_dl/downloader/downloader_utils.py +++ b/cyberdrop_dl/downloader/downloader_utils.py @@ -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)