Fixed set_session issue

This commit is contained in:
RemixDev 2021-03-01 19:02:48 +01:00
parent ad4ccf1b1d
commit b5214e7e53
No known key found for this signature in database
GPG key ID: B33962B465BDB51C

View file

@ -53,6 +53,7 @@ class Deezer:
self.current_user = data['current_user'] self.current_user = data['current_user']
self.childs = data['childs'] self.childs = data['childs']
self.selected_account = data['selected_account'] self.selected_account = data['selected_account']
self.session = requests.Session()
self.session.cookies.update(data['cookies']) self.session.cookies.update(data['cookies'])
def login(self, email, password, re_captcha_token, child=0): def login(self, email, password, re_captcha_token, child=0):