mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #22] Can't remove a track from a playlist #8
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#8
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 @drsm79 on GitHub (Aug 16, 2014).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/22
It seems there's no way to remove a track from a playlist (https://developer.spotify.com/web-api/remove-tracks-playlist/) which is unfortunate, though maybe I missed a call. Will try to implement this weekend...
@plamere commented on GitHub (Aug 16, 2014):
Hi Simon - you are right. It hasn't been implemented yet, its a brand new
feature of the API and I haven't updated the library yet.
P
On Sat, Aug 16, 2014 at 5:49 PM, Simon Metson notifications@github.com
wrote:
Paul Lamere
Director of Developer Platform
The Echo Nest
http://echonest.com
http://MusicMachinery.com
@drsm79 commented on GitHub (Aug 17, 2014):
I'll try and add it now - need it for the thing I'm building.
@MatthiasHerp commented on GitHub (Apr 4, 2020):
I'm currently writing a code to delete specific tracks out of a Spotify Playlist I created, and thus that I own. But somehow I am having Issues with the token, although I am using the 'playlist-modify-public' token which should allow me to delete tracks in my own playlists.
Would greatly appreciate your help :)
I get this error message by the link in the error code:
{
"error": {
"status": 401,
"message": "No token provided"
}
}
My Code:
Spotipy_delete_tracks.txt
Spotipy Authorization Scopes overview:
https://developer.spotify.com/documentation/general/guides/scopes/#playlist-modify-public
@stephanebruckert commented on GitHub (Apr 4, 2020):
@MatthiasHerp if your playlist is private, use the scope
playlist-modify-private@MatthiasHerp commented on GitHub (Apr 4, 2020):
Yes, I checked that, I put it privat and changed the scope as you suggested, and put it back public and used the public scope
@stephanebruckert commented on GitHub (Apr 4, 2020):
Hmm the error is not a 401 but an 403 and says "You cannot remove tracks from a playlist you don't own.".
Can you make sure your token has the same owner as your playlist?
Ideally please feel free to create a new issue so other people can see it and potentially help you
@MatthiasHerp commented on GitHub (Apr 4, 2020):
Okay, I checked it but somehow it doesn't work.
I made the playlist private and I am able to get the track names so the token should be valid.
I'll make a new issue