[idolcomplex] update to new domain and interface (#7559 #8009)

This commit is contained in:
Mike Fährmann
2025-08-11 22:24:04 +02:00
parent d7f654c643
commit e491d56dc3
8 changed files with 149 additions and 297 deletions

View File

@@ -91,7 +91,7 @@ class TestCookiedict(unittest.TestCase):
self.assertEqual(sorted(cookies.values()), sorted(self.cdict.values()))
def test_domain(self):
for category in ["exhentai", "idolcomplex", "nijie", "horne"]:
for category in ["exhentai", "nijie", "horne"]:
extr = _get_extractor(category)
cookies = extr.cookies
for key in self.cdict:
@@ -108,7 +108,6 @@ class TestCookieLogin(unittest.TestCase):
def test_cookie_login(self):
extr_cookies = {
"exhentai" : ("ipb_member_id", "ipb_pass_hash"),
"idolcomplex": ("login", "pass_hash"),
"nijie" : ("nijie_tok",),
"horne" : ("horne_tok",),
}
@@ -244,7 +243,6 @@ def _get_extractor(category):
URLS = {
"exhentai" : "https://exhentai.org/g/1200119/d55c44d3d0/",
"idolcomplex": "https://idol.sankakucomplex.com/post/show/1",
"nijie" : "https://nijie.info/view.php?id=1",
"horne" : "https://horne.red/view.php?id=1",
"test" : "generic:https://example.org/",