Skip to content

Handle playlists returned without items - #858

Merged
joostlek merged 1 commit into
mainfrom
ccr-af58c15a-nqvsya-playlist-metadata-only
Oct 30, 2026
Merged

joostlek merged 1 commit into
mainfrom
ccr-af58c15a-nqvsya-playlist-metadata-only

Conversation

@joostlek

Copy link
Copy Markdown
Owner

Proposed Changes

Since the February 2026 Web API changes, a playlist's items are "only available for playlists owned by the current user or playlists the user is a collaborator of". Spotify returns only metadata for other playlists. Playlist.items was required, so get_playlist raised MissingField for these playlists.

  • Playlist.items now defaults to an empty PlaylistTracks.
  • PlaylistTracks tolerates a missing items list.

The new test uses a metadata-only fixture; it fails on main and passes with this change.

Related Issues


Generated by Claude Code

@joostlek joostlek added the bugfix Inconsistencies or issues which will cause a problem for users or implementers. label Oct 30, 2026 — with Claude
@sonarqubecloud

Copy link
Copy Markdown

@joostlek
joostlek merged commit c7f54ca into main Oct 30, 2026
13 of 14 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bugfix Inconsistencies or issues which will cause a problem for users or implementers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants