-
-
Notifications
You must be signed in to change notification settings - Fork 289
Description
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.