diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index 444568572..c2bc2ffef 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.1.88" \ No newline at end of file +__version__ = "5.1.89" \ No newline at end of file diff --git a/cyberdrop_dl/clients/scraper_client.py b/cyberdrop_dl/clients/scraper_client.py index c2e7e442f..296c26080 100644 --- a/cyberdrop_dl/clients/scraper_client.py +++ b/cyberdrop_dl/clients/scraper_client.py @@ -84,7 +84,7 @@ async def get_BS4(self, domain: str, url: URL, client_session: ClientSession) -> try: await self.client_manager.check_http_status(response) except DDOSGuardFailure: - response = await self.flaresolverr(domain, url, client_session) + response = await self.flaresolverr(domain, url) content_type = response.headers.get('Content-Type') assert content_type is not None if not any(s in content_type.lower() for s in ("html", "text")): @@ -100,7 +100,7 @@ async def get_BS4_and_return_URL(self, domain: str, url: URL, client_session: Cl try: await self.client_manager.check_http_status(response) except DDOSGuardFailure: - response = await self.flaresolverr(domain, url, client_session) + response = await self.flaresolverr(domain, url) content_type = response.headers.get('Content-Type') assert content_type is not None if not any(s in content_type.lower() for s in ("html", "text")): @@ -118,7 +118,7 @@ async def get_json(self, domain: str, url: URL, params: Optional[Dict] = None, h try: await self.client_manager.check_http_status(response) except DDOSGuardFailure: - response = await self.flaresolverr(domain, url, client_session) + response = await self.flaresolverr(domain, url) content_type = response.headers.get('Content-Type') assert content_type is not None if 'json' not in content_type.lower(): @@ -133,7 +133,7 @@ async def get_text(self, domain: str, url: URL, client_session: ClientSession) - try: await self.client_manager.check_http_status(response) except DDOSGuardFailure: - response = await self.flaresolverr(domain, url, client_session) + response = await self.flaresolverr(domain, url) text = await response.text() return text @@ -145,7 +145,7 @@ async def post_data(self, domain: str, url: URL, client_session: ClientSession, try: await self.client_manager.check_http_status(response) except DDOSGuardFailure: - response = await self.flaresolverr(domain, url, client_session) + response = await self.flaresolverr(domain, url) if req_resp: return json.loads(await response.content.read()) else: diff --git a/pyproject.toml b/pyproject.toml index b0cd64066..665df29e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.1.88" +version = "5.1.89" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"