From c57e4a175d20c166b37c84cea12e7d78ec5b63f8 Mon Sep 17 00:00:00 2001 From: Lanver Date: Sun, 15 Feb 2026 15:13:03 +0100 Subject: [PATCH] fix: Use actual endpoint that function suggests --- playlist.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playlist.go b/playlist.go index 3f4e319..8706fa7 100644 --- a/playlist.go +++ b/playlist.go @@ -260,10 +260,10 @@ type PlaylistItemPage struct { // // Supported options: [Limit], [Offset], [Market], [Fields]. // -// [gets full details of the items in a playlist]: https://developer.spotify.com/documentation/web-api/reference/get-playlists-tracks +// [gets full details of the items in a playlist]: https://developer.spotify.com/documentation/web-api/reference/get-playlists-items // [Spotify ID]: https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids func (c *Client) GetPlaylistItems(ctx context.Context, playlistID ID, opts ...RequestOption) (*PlaylistItemPage, error) { - spotifyURL := fmt.Sprintf("%splaylists/%s/tracks", c.baseURL, playlistID) + spotifyURL := fmt.Sprintf("%splaylists/%s/items", c.baseURL, playlistID) // Add default as the first option so it gets override by url.Values#Set opts = append([]RequestOption{AdditionalTypes(EpisodeAdditionalType, TrackAdditionalType)}, opts...)