Merge pull request #212 from wesleybratt/patch-1

update user_playlists_contents.py
This commit is contained in:
Paul Lamere 2017-09-17 11:59:21 -04:00 committed by GitHub
commit 0e40d2bfc2
1 changed files with 0 additions and 2 deletions

View File

@ -1,7 +1,6 @@
# shows a user's playlists (need to be authenticated via oauth)
import sys
import os
import spotipy
import spotipy.util as util
@ -22,7 +21,6 @@ if __name__ == '__main__':
token = util.prompt_for_user_token(username)
if token:
top = 40
sp = spotipy.Spotify(auth=token)
playlists = sp.user_playlists(username)
for playlist in playlists['items']: