Skip to content

Bulk asynchronous downloader for multiple file hosts

put back in login check

Jules-WinnfieldX659af5d51c86
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index ff14b2b93..b13076c56 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "5.0.88"
+__version__ = "5.0.89"
diff --git a/cyberdrop_dl/scraper/crawler.py b/cyberdrop_dl/scraper/crawler.py
index ee7ff8507..7f1f7fc48 100644
--- a/cyberdrop_dl/scraper/crawler.py
+++ b/cyberdrop_dl/scraper/crawler.py
@@ -117,7 +117,7 @@ class Crawler(ABC):
assert login_url.host is not None
text = await self.client.get_text(self.domain, login_url)
- if '<span class="p-navgroup-user-linkText">' in text:
+ if '<span class="p-navgroup-user-linkText">' in text or "You are already logged in." in text:
self.logged_in = True
return
@@ -138,7 +138,7 @@ class Crawler(ABC):
await self.client.post_data(self.domain, login_url / "login", data=data, req_resp=False)
await asyncio.sleep(wait_time)
text = await self.client.get_text(self.domain, login_url)
- if '<span class="p-navgroup-user-linkText">' not in text:
+ if '<span class="p-navgroup-user-linkText">' not in text or "You are already logged in." not in text:
continue
self.logged_in = True
break
diff --git a/pyproject.toml b/pyproject.toml
index 42de356a2..f3762acd7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
-version = "5.0.88"
+version = "5.0.89"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"