Post not yet marked as solved
Post marked as unsolved with 1 replies, 202 views
I'm using MusicKit JS v1, and I've noticed that I can't seem to get playlists with more than 100 songs to shuffle and play past the first 100. The limitation is that the API call made with MusicKit JS default fetch (I'm using the tracks relationship in a playlist) is capped at 100, and I get a 400 error code whenever I try to raise the limit. On the other hand, I can't figure out how to just get the next 100, because I can't seem to get the offset parameter to work correctly in MusicKit JS either. Any recommendations?
For reference, something like the below just doesn't work (it only retrieves the first 100 songs or throws an error).
await appleMusicState.musicKit.api.playlist(selectedPlaylist.id, {limit: 200})
.then(playlist => {
console.log(playlist);
})
nor does directly trying to setQueue with the playlist ID
await appleMusicState.musicKit.setQueue({playlist: selectedPlaylist.id});