JMPerez / spotify-web-api-js

A client-side JS wrapper for the Spotify Web API

Home Page:https://jmperezperez.com/spotify-web-api-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mcmxcdev opened this issue · comments

commented

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.