mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-20 19:59:26 +00:00
log cookie attempt
This commit is contained in:
@@ -50,6 +50,7 @@ class Rutracker(object):
|
||||
if not self.has_bb_session_cookie(r):
|
||||
time.sleep(10)
|
||||
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})
|
||||
else:
|
||||
r = self.session.post(loginpage, data=post_params, timeout=self.timeout, allow_redirects=False)
|
||||
|
||||
Reference in New Issue
Block a user