API: updatePlaylist entry point does not support multiple songIndexToRemove in a single query + question about createPlaylist
The subsonic API /updatePlaylist
support multiple parameters songIndexToRemove
in it's definition.
http://www.subsonic.org/pages/api.jsp#updatePlaylist
songIndexToRemove No Remove the song at this position in the playlist. Multiple parameters allowed.
This is not true for Funkwhale 1.2.7.
Calling rest/updatePlaylist.view?playlistId=24&songIndexToRemove=0&songIndexToRemove=1
will only remove the first one and ignore all other songIndexToRemove
Additionally the API definition of createPlaylist
is not very clear on subsonic API definition
http://www.subsonic.org/pages/api.jsp#createPlaylist
But it can be used to update playlists too > Creates (or updates) a playlist.
What most other subsonic implementation do is that in update mode they replace the playlist content with the list of joined songIds and not add them.
This kinda makes sense since for just adding the updatePlaylist
endpoint is more logical.