From fc798aa6840a6def8dc9934d8eee9b8d24c4c0ca Mon Sep 17 00:00:00 2001 From: Harrison Perry Date: Wed, 26 Jul 2017 17:24:25 +0100 Subject: [PATCH] Update user_playlists_contents.py results was never used in the show_tracks method. --- examples/user_playlists_contents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/user_playlists_contents.py b/examples/user_playlists_contents.py index e03ceec..7ca4289 100644 --- a/examples/user_playlists_contents.py +++ b/examples/user_playlists_contents.py @@ -6,7 +6,7 @@ import spotipy import spotipy.util as util def show_tracks(results): - for i, item in enumerate(tracks['items']): + for i, item in enumerate(results['items']): track = item['track'] print(" %d %32.32s %s" % (i, track['artists'][0]['name'], track['name']))