-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify current playlist modification endpoints #321
Comments
Also related: spotipy-dev/spotipy#1063 |
I found this issue trying to track down whether tekore has ever supported removing playlist items by index. Apparently it has, according to add1f2a and #315. As far as I can see, even though the functionality is not documented here, it still works: you can delete tracks with indexes providing a body like this: {
"tracks": [
{
"uri": "spotify:track:6YowAxI2HIbhAwumOqpldE",
"positions": [7]
}
]
} I verified this at https://spotify-dedup.com/ (it sends Spotify API requests right from the browser, so it's easy to verify). I am currently working on an app that, among other things, allow removing duplicate tracks from playlists, and without being able to remove playlist items by their index the workflow is much more involved than I'd like it to be: I have to remove the track by ID, which removes all its occurrences, then re-add the same track to the position of its first occurrence. And that's not to mention a full backup of the entire playlist in question, in case something goes wrong along the way. Is there a story behind why #315 came to be? My guess is that it probably was spotipy-dev/spotipy#1063. Is there a reason tekore would not want to bring back the |
We actually got errors in our tests from Spotify. The logs will expire soon, but here it is (400: Could not remove tracks, please check parameters.). The previous body only included the positions parameter, but that's interesting if it works! Thank you 👌 Would you be willing to contribute a fix? |
Hm, interesting. The failed test was calling I'll create a PR to add the Since this functionality is undocumented, I think it would be convenient for the user to know about this. I was thinking about something along the lines of a |
Oh, fair! I may have jumped the gun with that when I saw it wasn't documented anymore. And that sounds good. RuntimeWarnings are a bit much. I've resorted to just documenting the fact that it's not mentioned officially. So a note in the docstring would be enough for me! Thank you! |
|
We recently removed a playlist method because of a bug, and there was similar discussion on spotipy-dev/spotipy#1075. We should make sure that the current endpoints are feature-complete and up to date.
The text was updated successfully, but these errors were encountered: