package updates

This commit is contained in:
2024-08-14 16:11:46 +05:30
parent 41fff1d406
commit 1abcb3ac4e
3 changed files with 77 additions and 48 deletions

View File

@@ -118,6 +118,8 @@ const addItemsToPlaylist = async (req, res, nextBatch, playlistID) => {
}
const removeItemsFromPlaylist = async (req, res, nextBatch, playlistID, snapshotID) => {
// API doesn't document this kind of deletion via the 'positions' field
// but see here: https://github.com/spotipy-dev/spotipy/issues/95#issuecomment-2263634801
const response = await singleRequest(req, res,
"DELETE",
`/playlists/${playlistID}/tracks`,