Skip to content

Skip local files in get_playlist_items - #868

Open
joostlek wants to merge 1 commit into
mainfrom
ccr-af58c15a-nqvsya-playlist-items-local-files
Open

joostlek wants to merge 1 commit into
mainfrom
ccr-af58c15a-nqvsya-playlist-items-local-files

Conversation

@joostlek

Copy link
Copy Markdown
Owner

Proposed Changes

get_playlist already drops local files from a playlist's entries, because their track objects don't have the fields the models need. get_playlist_items didn't, so any playlist containing a local file raised InvalidFieldValue.

PlaylistTrackResponse now filters out entries with is_local, matching PlaylistTracks. The new test uses the entries of the existing playlist_2.json fixture, which include a local file; it fails on main and passes with this change.

Related Issues

None. Found while checking the library against the Spotify Web API reference.


Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SLHDn51P7snTSyxtuDToEb
@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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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