Closed grerrg closed 4 years ago
In the library/playlist view, d
should remove a track from a playlist
I am also unable to delete a track from a playlist. What I have tried so far:
F3
)o
)d
)
Nothing seems to happen when I hit d
thoughHuh, you are right. The feature was never there.
I am extremely a rust newbie but would be willing to take a crack at this if you're busy. :)
Sure, go ahead. Contributions are always welcome and appreciated :)
This API seems like a good fit for the task: https://docs.rs/rspotify/0.8.0/rspotify/spotify/client/struct.Spotify.html#method.user_playlist_remove_specific_occurrenes_of_tracks
I have gotten it to successfully make the correct API request to spotify when you hit d
on a track in the playlist view, but I can't seem to figure out how to trigger a redraw with the updated track list after removing the track from the playlist and updating the playlist cache.
It's also possible I am way off-target and the fact that the list does not update after removing the track means I must be removing the track wrong. I know the API request is going through correctly though since I get a 200 OK
back from spotfiy and the track is correctly no longer in the playlist if I go back up to the Playlists view (backspace
) and then back into the Playlist view (o
)
Any guidance/pointers would be appreciated! And if it would be helpful for me to push up my WIP code so you can take a look, let me know.
did this actually fix it? it still seems like nothing happens when I hit d
i'm kinda shocked that i couldn't find anything by searching for "delete/remove". (am i really the only one stumbling across this?)
how can i remove a track from a playlist?
the context menu (
shift+o
) allows only to add a track to a playlist. but when being in a playlist i also want to be able to remove a song from the playlist.