From 450f2c38163eab999f0440dafd72a7a78e98ef00 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sun, 25 Jul 2021 20:05:39 +0200 Subject: [PATCH] Fixed login for family accounts v1.0.4 --- deezer/__init__.py | 8 ++++---- setup.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deezer/__init__.py b/deezer/__init__.py index 11b0b02..7edeb42 100644 --- a/deezer/__init__.py +++ b/deezer/__init__.py @@ -2,7 +2,7 @@ import requests from deezer.gw import GW from deezer.api import API -__version__ = "1.0.3" +__version__ = "1.0.4" class TrackFormats(): """Number associtation for formats""" @@ -114,9 +114,9 @@ class Deezer: 'id': child["USER_ID"], 'name': child["BLOG_NAME"], 'picture': child.get("USER_PICTURE", ""), - 'license_token': child["OPTIONS"]["license_token"], - 'can_stream_hq': child["OPTIONS"]["web_hq"] or child["OPTIONS"]["mobile_hq"], - 'can_stream_lossless': child["OPTIONS"]["web_lossless"] or child["OPTIONS"]["mobile_lossless"] + 'license_token': user_data["USER"]["OPTIONS"]["license_token"], + 'can_stream_hq': user_data["USER"]["OPTIONS"]["web_hq"] or user_data["USER"]["OPTIONS"]["mobile_hq"], + 'can_stream_lossless': user_data["USER"]["OPTIONS"]["web_lossless"] or user_data["USER"]["OPTIONS"]["mobile_lossless"] }) else: self.childs.append({ diff --git a/setup.py b/setup.py index 31ddb5f..006e99d 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text() setup( name="deezer-py", - version="1.0.3", + version="1.0.4", description="A wrapper for all Deezer's APIs", long_description=README, long_description_content_type="text/markdown",