[API Request] Add songs to playlist at specific index #210
Funtimes909
started this conversation in
API requests
Replies: 1 comment
-
|
Can't you just call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Type of change
API tweak
Proposal description
I am working on a project to import playlists from various music streaming services, one of the features I wish to implement is the ability to download songs/albums that are missing from the server, import them and add them to the playlist to recreate it 1:1 from the streaming service.
Implementing this functionality would be a lot simpler if my program could do two passes:
first pass: Matches as many songs as it can and creates the playlist as is.
second pass: downloads any missing songs, adds metadata, adds it to the library and adds it to the playlist at index it's at on the source playlist.
I propose to add an optional parameter to the updatePlaylist endpoint to specify at which index to add a song
Backward compatibility impact
No response
Backward compatibility
API details
Parameters:
index - the index at which to add the track
Security impacts
No response
Potential issues
No response
Alternative solutions
A separate endpoint could be made entirely, if the current proposal is deemed too risky, I know that feishin tells me when editing song order in a playlist that it's not recommended to edit large playlists.
Beta Was this translation helpful? Give feedback.
All reactions