Skip to content

Skip local files in get_playlist_items - #868

Merged
joostlek merged 1 commit into
mainfrom
ccr-af58c15a-nqvsya-playlist-items-local-files
Nov 4, 2026
Merged

joostlek merged 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

@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 e5e5365 into main Nov 4, 2026
14 checks passed
@joostlek
joostlek deleted the ccr-af58c15a-nqvsya-playlist-items-local-files branch November 4, 2026 11:37
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 5, 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