Merge pull request #303 from wdr1/patch-1

Update create_playlist.py
This commit is contained in:
Stéphane Bruckert 2020-01-12 00:10:03 +00:00 committed by GitHub
commit 2be6763d0d
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)