[kemonoparty] remove '_prepare_ddosguard_cookies()'

This commit is contained in:
Mike Fährmann
2025-05-24 14:45:24 +02:00
parent e199396872
commit ed9c960bb9
2 changed files with 0 additions and 8 deletions

View File

@@ -590,11 +590,6 @@ class Extractor():
return util.json_loads(text.extr(
page, ' id="__NEXT_DATA__" type="application/json">', "</script>"))
def _prepare_ddosguard_cookies(self):
if not self.cookies.get("__ddg2", domain=self.cookies_domain):
self.cookies.set(
"__ddg2", util.generate_token(), domain=self.cookies_domain)
def _cache(self, func, maxage, keyarg=None):
# return cache.DatabaseCacheDecorator(func, maxage, keyarg)
return cache.DatabaseCacheDecorator(func, keyarg, maxage)