mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-25 23:45:52 +03:00
[GH-ISSUE #515] Podcasts/Shows not being fetched properly #168
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#168
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?
Originally created by @m4r1vs on GitHub (Jan 16, 2025).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/515
Describe the bug
The spotify API returns "null" as part of the "items" for some Podcasts (for example Lateral by Tom Scott). The response JSON looks like this:
To Reproduce
Steps to reproduce the behavior:
cargo runOption<SimpliefiedEpisode>fixes this.Expected behavior
I expect all episodes to be loaded properly.
Log/Output data
Serde is not able to parse the json.
Additional context
I use spotify_player for music playback and have long been plagued by some podcasts not loading. Now that I have examps coming up, it's the perfect time to procrastinate on open source lol
@ramsayleung commented on GitHub (Jan 18, 2025):
It seems that Spotify has changed the behavior of their APIs again, I've encountered this problem more times than I can count. Originally, the API returned a SimplifiedEpisode. If an episode was null, it would skip it and return nothing.
To address this issue, I have an idea: instead of directly updating the return type from
SimplifiedEpisodetoOption<SimplifiedEpisode>, I prefer to introduce a wire version that is flexible and adaptable to any changes Spotify makes. This approach allows us to continue usingSimplifiedEpisodeas the facade version without introducing breaking changes for library users.@ramsayleung commented on GitHub (Jul 8, 2025):
Closing this ticket as it's resolved by this PR: https://github.com/ramsayleung/rspotify/pull/526