mirror of
https://gitlab.com/RemixDev/deezer-py.git
synced 2025-01-29 17:18:28 +00:00
fix get_my_favorite_tracks when user has no favorite tracks
This commit is contained in:
parent
c01a63c29c
commit
69880e2389
|
@ -372,6 +372,7 @@ class GW:
|
|||
def get_my_favorite_tracks(self, limit=25):
|
||||
ids_raw = self.get_user_favorite_ids(limit=limit)
|
||||
ids = [ x['SNG_ID'] for x in ids_raw['data'] ]
|
||||
if len(ids) == 0: return []
|
||||
data = self.get_tracks(ids)
|
||||
result = []
|
||||
for (i, track) in enumerate(data):
|
||||
|
|
Loading…
Reference in a new issue