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):