Skip to content

fix: resolve #721 — Fix: Search crashes due to recent Spotify API changes (null items, missing tracks/publisher)#729

Open
chinhkrb113 wants to merge 2 commits into
jpochyla:mainfrom
chinhkrb113:improve/quality/handle-null-items-in-paginated-api-respo
Open

fix: resolve #721 — Fix: Search crashes due to recent Spotify API changes (null items, missing tracks/publisher)#729
chinhkrb113 wants to merge 2 commits into
jpochyla:mainfrom
chinhkrb113:improve/quality/handle-null-items-in-paginated-api-respo

Conversation

@chinhkrb113
Copy link
Copy Markdown

Summary

Combined multi-file contribution:

Changes

  • psst-gui/src/data/utils.rs
  • psst-gui/src/data/playlist.rs

Why

psst-gui/src/data/utils.rs: Spotify's API now occasionally returns null entries in the items array of paginated responses (e.g., region-blocked tracks). The current deserialization expects every element to be a valid struct, causing a crash like "invalid type: null, expected struct Playlist". We need a custom deserializer that filters out null values from the items array.

… API changes (null items, missing tracks/publisher)

Fixes jpochyla#721

Signed-off-by: ChinhLee <76194645+chinhkrb113@users.noreply.github.com>
… API changes (null items, missing tracks/publisher)

Fixes jpochyla#721

Signed-off-by: ChinhLee <76194645+chinhkrb113@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant