Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
fix: request response / curl references
NTFSvolumeb8c24d70cea2
diff --git a/cyberdrop_dl/clients/scraper_client.py b/cyberdrop_dl/clients/scraper_client.pyindex fe84cb40a..b1344a31b 100644--- a/cyberdrop_dl/clients/scraper_client.py+++ b/cyberdrop_dl/clients/scraper_client.py@@ -361,8 +361,8 @@ class ScraperClient:soup: BeautifulSoup,exc: Exception | None = None,):- html_text = soup.prettify(formatter="html") # Not sure if we should prettify- status_code = response.status if isinstance(response, aiohttp.ClientResponse) else response.status_code+ html_text: str = soup.prettify(formatter="html") # Not sure if we should prettify+ status_code: int = response.status_code if hasattr(response, "status_code") else response.status # type: ignoreresponse_headers = dict(response.headers)now = datetime.now()diff --git a/cyberdrop_dl/managers/client_manager.py b/cyberdrop_dl/managers/client_manager.pyindex 71f6efab5..d0564e9fd 100644--- a/cyberdrop_dl/managers/client_manager.py+++ b/cyberdrop_dl/managers/client_manager.py@@ -164,8 +164,7 @@ class ClientManager:origin: ScrapeItem | URL | None = None,) -> None:"""Checks the HTTP status code and raises an exception if it's not acceptable."""- is_curl = not isinstance(response, ClientResponse)- status = response.status_code if is_curl else response.status+ status: int = response.status_code if hasattr(response, "status_code") else response.status # type: ignoreheaders = response.headersmessage = None