mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-20 16:03:59 +01:00
Adding 'keeplogged' argument to maintain what.cd api login
This commit is contained in:
@@ -97,7 +97,8 @@ class GazelleAPI(object):
|
||||
|
||||
loginpage = 'https://what.cd/login.php'
|
||||
data = {'username': self.username,
|
||||
'password': self.password}
|
||||
'password': self.password,
|
||||
'keeplogged': '1'}
|
||||
r = self.session.post(loginpage, data=data, timeout=self.default_timeout, headers=self.default_headers)
|
||||
self.past_request_timestamps.append(time.time())
|
||||
if r.status_code != 200:
|
||||
|
||||
Reference in New Issue
Block a user