and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

...
 
Commits (2)
...@@ -82,6 +82,7 @@ def map_user_playlist(playlist, default_user_name=""): ...@@ -82,6 +82,7 @@ def map_user_playlist(playlist, default_user_name=""):
return { return {
'id': playlist['PLAYLIST_ID'], 'id': playlist['PLAYLIST_ID'],
'title': playlist['TITLE'], 'title': playlist['TITLE'],
'description': playlist['DESCRIPTION'],
'nb_tracks': playlist['NB_SONG'], 'nb_tracks': playlist['NB_SONG'],
'link': 'https://www.deezer.com/playlist/'+str(playlist['PLAYLIST_ID']), 'link': 'https://www.deezer.com/playlist/'+str(playlist['PLAYLIST_ID']),
'picture': 'https://api.deezer.com/playlist/'+str(playlist['PLAYLIST_ID'])+'/image', 'picture': 'https://api.deezer.com/playlist/'+str(playlist['PLAYLIST_ID'])+'/image',
...@@ -90,6 +91,7 @@ def map_user_playlist(playlist, default_user_name=""): ...@@ -90,6 +91,7 @@ def map_user_playlist(playlist, default_user_name=""):
'picture_big': 'https://e-cdns-images.dzcdn.net/images/'+playlist['PICTURE_TYPE']+'/'+playlist['PLAYLIST_PICTURE']+'/500x500-000000-80-0-0.jpg', 'picture_big': 'https://e-cdns-images.dzcdn.net/images/'+playlist['PICTURE_TYPE']+'/'+playlist['PLAYLIST_PICTURE']+'/500x500-000000-80-0-0.jpg',
'picture_xl': 'https://e-cdns-images.dzcdn.net/images/'+playlist['PICTURE_TYPE']+'/'+playlist['PLAYLIST_PICTURE']+'/1000x1000-000000-80-0-0.jpg', 'picture_xl': 'https://e-cdns-images.dzcdn.net/images/'+playlist['PICTURE_TYPE']+'/'+playlist['PLAYLIST_PICTURE']+'/1000x1000-000000-80-0-0.jpg',
'tracklist': 'https://api.deezer.com/playlist/'+str(playlist['PLAYLIST_ID'])+'/tracks', 'tracklist': 'https://api.deezer.com/playlist/'+str(playlist['PLAYLIST_ID'])+'/tracks',
'creation_date': playlist['DATE_ADD'],
'creator': { 'creator': {
'id': playlist['PARENT_USER_ID'], 'id': playlist['PARENT_USER_ID'],
'name': playlist.get('PARENT_USERNAME', default_user_name) 'name': playlist.get('PARENT_USERNAME', default_user_name)
......