Skip to content

Adding multiple tracks to a playlist in a single request doesn't work #145

@itsaphel

Description

@itsaphel

These took a while to debug and identify the issues themselves. Apologies if this report lacks helpful information to resolve the issue - it's 4AM now and I need to catch some sleep so I haven't really had time to figure out why the second issue is occurring.


First issue: The example and test is wrong I believe, perhaps a recent update broke this: https://github.com/thelinmichael/spotify-web-api-java/blob/master/examples/data/playlists/AddTracksToPlaylistExample.java

This track ID alone won't work. A full Spotify URI has to be entered as a value.


Second issue: Adding more than one track per request (AddTracksToPlaylist request) bugs out. I haven't had a chance to check why exactly, but the SnapshotResult object that it returns is null with no exceptions printed. Tracks are not added to the playlist. Making one request per track, however, works.

According to the Spotify API docs up to 100 tracks per request should be possible to be added. I'm guessing they made an API change and the library's method of adding tracks to the request is outdated.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions