mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #242] Problem creating a new playlist #127
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sheheryarbutt on GitHub (Jan 2, 2018).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/242
I have no issue looking through all the tracks in my playlist but when I try to create a new playlist this happens. Any help would be appreciated!
@ritiek commented on GitHub (Jan 2, 2018):
Similar issue with passing parameters to function as https://github.com/plamere/spotipy/issues/230#issuecomment-353485277.
Check how
user_playlist_create()is defined:github.com/plamere/spotipy@4c2c1d763a/spotipy/client.py (L403)So, you need to call
sp.user_playlist_create()like below:@sheheryarbutt commented on GitHub (Jan 2, 2018):
@ritiek so I tried what you said but it gives me an error "TypeError: user_playlist_create() got an unexpected keyword argument 'description'" I found out that you don't pass the description anymore and its just the first 3 parameters, ty for the help!
@ucalyptus commented on GitHub (Oct 14, 2018):
any updates?
even I ran into this
SpotifyException: http status: 400, code:-1 - https://api.spotify.com/v1/users/francocasadei/playlists/3lDhWGsVYxWGXFKtJvI7cv/tracks:
Error parsing JSON.
@CarissaThomas commented on GitHub (Nov 23, 2018):
@ucalyptus I fixed this by creating my token as such:
token = util.prompt_for_user_token(username=username, scope='playlist-modify-public', client_id=client_id, client_secret=client_secret, redirect_uri="http://whatever/")
Setting the scope parameter to 'playlist-modify-public' allowed me to create a public playlist without the SpotifyException: http status: 400, code:-1 - error.
@mbirgi commented on GitHub (Feb 17, 2019):
@sheheryarbutt I don't understand why you are saying that description is not passed anymore (https://github.com/plamere/spotipy/issues/242#issuecomment-354856767), the signature of the method "user_playlist_create(...)" still has the "description" param. But I am also getting this:
TypeError: user_playlist_change_details() got an unexpected keyword argument 'description'Edit: I have found out that this problem is related to issue #211. Following this suggestion solved the issue for me.