Update create_playlist.py

Added scope to token request
This commit is contained in:
William Reardon 2018-06-23 20:37:58 -07:00 committed by GitHub
parent 4c2c1d763a
commit 1ea4d475b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,8 @@ else:
print("Usage: %s username playlist-name playlist-description" % (sys.argv[0],)) print("Usage: %s username playlist-name playlist-description" % (sys.argv[0],))
sys.exit() sys.exit()
token = util.prompt_for_user_token(username) scope = "playlist-modify-public"
token = util.prompt_for_user_token(username, scope)
if token: if token:
sp = spotipy.Spotify(auth=token) sp = spotipy.Spotify(auth=token)