From 57cec4336ee9025ffb8c6831745a53f127ceb6b8 Mon Sep 17 00:00:00 2001 From: Marshal Date: Mon, 23 Dec 2019 13:57:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=B8=D0=BD=D0=B8=D1=86=D0=B8=D0=BB=D0=B0?= =?UTF-8?q?=D0=B7=D0=B8=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BA=D0=BB=D0=B8=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D0=B0=20=D0=BF=D1=80=D0=B8=20=D0=BF=D0=BE=D0=BC?= =?UTF-8?q?=D0=BE=D1=89=D0=B8=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=B0=D1=80=D0=BE=D0=BB=D1=8F=20=D1=81=20=D0=B8?= =?UTF-8?q?=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=D0=BC=20=D0=BF=D1=80=D0=BE=D0=BA=D1=81=D0=B8=20#15?= =?UTF-8?q?9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yandex_music/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yandex_music/client.py b/yandex_music/client.py index 82b0f51..bcc8438 100644 --- a/yandex_music/client.py +++ b/yandex_music/client.py @@ -113,9 +113,9 @@ class Client(YandexMusicObject): token = None while not token: try: - token = cls().generate_token_by_username_and_password(username, password, - x_captcha_answer=x_captcha_answer, - x_captcha_key=x_captcha_key) + token = cls(*args, **kwargs).generate_token_by_username_and_password(username, password, + x_captcha_answer=x_captcha_answer, + x_captcha_key=x_captcha_key) except Captcha as e: if not captcha_callback: raise e