Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
fix: API needs a client
NTFSvolumee7eca18bab8e
diff --git a/cyberdrop_dl/crawlers/crawler.py b/cyberdrop_dl/crawlers/crawler.pyindex 616a6e56e..1cdee253c 100644--- a/cyberdrop_dl/crawlers/crawler.py+++ b/cyberdrop_dl/crawlers/crawler.py@@ -903,18 +903,20 @@ class API(HTTPMixin, ABC):return f"<{type(self).__name__}>"@final- def __init__(+ def __init__( # noqa: PLR0913self,domain: str,PRIMARY_URL: AbsoluteHttpURL, # noqa: N803config: Config,cache: TTLCacheAdapter[Any],+ client: HTTPClient,parse_url: Callable[[str | yarl.URL], AbsoluteHttpURL] = parse_url,) -> None:self.PRIMARY_URL: Final = PRIMARY_URLself.parse_url: Final = parse_urlself.config: Final = configself.cache: Final = cache+ self.client: HTTPClient = clientself.__http_ctx__: HTTPContext = HTTPContext.build(domain, self.__http_config__)self.__post_init__()@@ -925,6 +927,7 @@ class API(HTTPMixin, ABC):PRIMARY_URL=crawler.PRIMARY_URL,parse_url=crawler.parse_url,cache=crawler.cache,+ client=crawler.client,config=crawler.manager.config,)self.__http_config__ = crawler.__http_config__ | self.__http_config__