Added loved_tracks to current_user

This commit is contained in:
RemixDev 2021-12-29 18:21:06 +01:00
parent 3fa01e825c
commit f1c8bf1863

View file

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