From f1c8bf1863af377c909606c5fe5dd5fac9ceb6fa Mon Sep 17 00:00:00 2001 From: RemixDev Date: Wed, 29 Dec 2021 18:21:06 +0100 Subject: [PATCH] Added loved_tracks to current_user --- deezer/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deezer/__init__.py b/deezer/__init__.py index 8c581eb..e22deef 100644 --- a/deezer/__init__.py +++ b/deezer/__init__.py @@ -123,7 +123,8 @@ class Deezer: '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"], 'country': user_data["USER"]["OPTIONS"]["license_country"], - 'language': user_data["USER"]["SETTING"]["global"]["language"] + 'language': user_data["USER"]["SETTING"]["global"]["language"], + 'loved_tracks': child.get("LOVEDTRACKS_ID") }) else: self.childs.append({ @@ -134,7 +135,8 @@ class Deezer: '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"], 'country': user_data["USER"]["OPTIONS"]["license_country"], - 'language': user_data["USER"]["SETTING"]["global"]["language"] + 'language': user_data["USER"]["SETTING"]["global"]["language"], + 'loved_tracks': user_data["USER"].get("LOVEDTRACKS_ID") }) def change_account(self, child_n):