mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#530
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ramsayleung/rspotify/pull/546
Author: @eioo
Created: 1/10/2026
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
2100a60fix: handle null playlists in category endpoints (#535)📊 Changes
2 files changed (+186 additions, -2 deletions)
View changed files
📝
rspotify-model/src/playlist.rs(+116 -2)📝
tests/test_models.rs(+70 -0)📄 Description
Description
This PR fixes an issue #535, where the Spotify API sometimes returns null playlists in category endpoints (like "Get Category's Playlists"), causing deserialization to fail. The fix adds custom deserialization logic that filters out invalid null playlists, ensuring only valid ones are returned.
Changes:
Motivation and Context
User of https://github.com/aome510/spotify-player, which has this library as dependency. There is an issue that playlists cannot be loaded in the application, I assume it's related to #535.
Dependencies
None.
Type of change
How has this been tested?
All existing tests pass, and added a new one:
test_deserialization_playlist_item_with_malformed_episodes.Is this change properly documented?
Yes. Let me know if
CHANGELOGalso needs adjustments.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.