Skip to content

Handle playlists without images in get_playlist - #861

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

joostlek merged 1 commit into
mainfrom
ccr-af58c15a-nqvsya-playlist-images

Conversation

@joostlek

Copy link
Copy Markdown
Owner

Proposed Changes

BasePlaylist.__pre_deserialize__ turns images: null into an empty list. Playlist overrides that hook without calling it, so get_playlist failed on a playlist without images, while get_playlists_for_current_user handled the same playlist.

Playlist.__pre_deserialize__ now calls super().__pre_deserialize__ first.

The new test fails on main and passes with this change.

Related Issues

None. Found while checking the models 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 cd77edf into main Oct 30, 2026
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