mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 09:49:36 +01:00
log cookie attempt
This commit is contained in:
@@ -50,6 +50,7 @@ class Rutracker(object):
|
|||||||
if not self.has_bb_session_cookie(r):
|
if not self.has_bb_session_cookie(r):
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
if headphones.CONFIG.RUTRACKER_COOKIE:
|
if headphones.CONFIG.RUTRACKER_COOKIE:
|
||||||
|
logger.info("Attempting to log in using predefined cookie...")
|
||||||
r = self.session.post(loginpage, data=post_params, timeout=self.timeout, allow_redirects=False, cookies={'bb_session':headphones.CONFIG.RUTRACKER_COOKIE})
|
r = self.session.post(loginpage, data=post_params, timeout=self.timeout, allow_redirects=False, cookies={'bb_session':headphones.CONFIG.RUTRACKER_COOKIE})
|
||||||
else:
|
else:
|
||||||
r = self.session.post(loginpage, data=post_params, timeout=self.timeout, allow_redirects=False)
|
r = self.session.post(loginpage, data=post_params, timeout=self.timeout, allow_redirects=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user