← 输入框|github.com|刷新
Skip to content

Fix to a breaking change on the spotify API - #476

Closed
buyblolop wants to merge 1 commit into
spotify-web-api-java:mainfrom
buyblolop:get-playlist-items-endpoint-change
Closed

buyblolop wants to merge 1 commit into
spotify-web-api-java:mainfrom
buyblolop:get-playlist-items-endpoint-change

Conversation

@buyblolop

@buyblolop buyblolop commented Sep 2, 2026 •

Copy link
Copy Markdown

At some point, Spotify API has moved interactions with playlist items from /playlists/{playlist_id}/tracks to /playlists/{playlist_id}/items, perhaps because that is more descriptive. It has caused playlist items interactions not to work through this API. This contribution fixes this in the API. I also changed some comments that refer to it, and changed the names of some variables to reflect this change. I also changed everything in tests that refers to this. All tests pass, and I also tested fetching playlist items with a real connection to the Spotify API.

Something worth noting is that this doesn't bring back the old functionality fully, because of another change on the Spotify API, that being that a user has to own or be a contributor on the playlist referenced in the requests. This much is said on the updated official docs on the Spotify API, and it does seem to work that way from testing. No "owner or contributor" check has been implemented, and we just get a 403 when not authorized - I am leaving this up to the maintainers, to decide if or how to manage this.

As far as I can tell, the new docs seem to be identical, apart from the path change.

New docs: Get items | Update items | Add items | Remove items

Old docs: Get items | Update items | Add items | Remove items

@dargmuesli

Copy link
Copy Markdown
Member

Please take a look at this PR, it should already be included there and released as v10 release candidate: #455

@buyblolop

Copy link
Copy Markdown
Author

Ah yes, I see the changes.

@buyblolop buyblolop closed this Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants