From 374687d1ee9103149c4a4fe92da1aa2b148e1677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=B3nos?= Date: Thu, 13 May 2021 23:18:22 +0200 Subject: [PATCH] Update cookie --- animeworld/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/animeworld/__init__.py b/animeworld/__init__.py index 51f7a30..b93bc82 100644 --- a/animeworld/__init__.py +++ b/animeworld/__init__.py @@ -5,7 +5,7 @@ import inspect HDR = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36'} -cookies = {'AWCookietest': None} +cookies = {'AWCookieVerify': None} ## Function ########################################## @@ -65,7 +65,7 @@ def __init__(self, link): def __fixCookie(self): try: res = self.__getHTML() - cookies['AWCookietest'] = re.search(r'document\.cookie="AWCookietest=(.+) ;', res.text).group(1) + cookies['AWCookieVerify'] = re.search(r'document\.cookie="AWCookieVerify=(.+) ;', res.text).group(1) except AttributeError: pass