From 59e967ae055f78201539b759786460d2b172373d Mon Sep 17 00:00:00 2001 From: Rhilip Date: Mon, 6 Jan 2020 14:48:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(OurBits):=20=E5=BA=94=E5=AF=B9OB=E7=AB=99?= =?UTF-8?q?=E7=82=B9Cookies=E4=BC=9A=E6=9C=8D=E5=8A=A1=E5=99=A8=E8=BF=87?= =?UTF-8?q?=E6=9C=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extractors/base/nexusphp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extractors/base/nexusphp.py b/extractors/base/nexusphp.py index 91bd9be..7ef318a 100644 --- a/extractors/base/nexusphp.py +++ b/extractors/base/nexusphp.py @@ -50,13 +50,13 @@ def __init__(self, status, cookies, passkey, **kwargs): def session_check(self): page_usercp_bs = self.get_data(url=self.url_host + "/usercp.php", bs=True) self.status = True if page_usercp_bs.find(id="info_block") else False - if self.status: - Logger.debug("Through authentication in Site: {}".format(self.name)) - elif self._AUTO_RENEW_COOKIES: + if not self.status and self._AUTO_RENEW_COOKIES: Logger.info('Update your cookies by login method in Site: {}'.format(self.name)) self.update_cookies() - if not self.status: + if self.status: + Logger.debug("Through authentication in Site: {}".format(self.name)) + else: Logger.error("Can not verify identity. Please Check your Cookies".format(mo=self.name)) return self.status