Fixed login for family accounts

v1.0.4
This commit is contained in:
RemixDev 2021-07-25 20:05:39 +02:00
parent 03cd19807e
commit 450f2c3816
No known key found for this signature in database
GPG key ID: B33962B465BDB51C
2 changed files with 5 additions and 5 deletions

View file

@ -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({

View file

@ -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",