spotify-web-api-js icon indicating copy to clipboard operation
spotify-web-api-js copied to clipboard

Support POSTing whole albums instead of just single tracks with `.addTracksToPlaylist()`

Open mcmxcdev opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe.

I am looking for the functionality to add whole artist albums to a playlist, but it seems it is only possible to add tracks for what ever reason. It's many more requests this way to the API, and I would rather keep the amount of requests small.

This is probably not possible since it is not documented in: https://developer.spotify.com/documentation/web-api/reference/#/operations/add-tracks-to-playlist, but I was wondering if there is a way that I don't see.

Describe the solution you'd like .addTracksToPlaylist() should also support albums rather than just tracks and episodes.

Describe alternatives you've considered Iterating over all albums, making a lot of requests for tracks.

mcmxcdev avatar Nov 01 '21 14:11 mcmxcdev