mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-25 23:45:52 +03:00
[PR #457] [MERGED] Workaround for Spotify API bug #469
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#469
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/457
Author: @m-torhan
Created: 2/1/2024
Status: ✅ Merged
Merged: 2/2/2024
Merged by: @ramsayleung
Base:
master← Head:spotify-api-workaround📝 Commits (1)
6c15096Workaround for Spotify API bug📊 Changes
4 files changed (+43 additions, -4 deletions)
View changed files
📝
rspotify-model/src/artist.rs(+3 -1)➕
rspotify-model/src/data_type_patcher.rs(+28 -0)📝
rspotify-model/src/image.rs(+6 -0)📝
rspotify-model/src/lib.rs(+6 -3)📄 Description
Description
https://github.com/ramsayleung/rspotify/issues/452 Due to Spotify API returning floats instead of uints for some fields of the Artist it cannot be parsed. This commit adds deserializing float values into u32 as a workaround.
Motivation and Context
Please also include relevant motivation and context.
Dependencies
None
Type of change
Please delete options that are not relevant.
How has this been tested?
Tested using https://github.com/aome510/spotify-player, after this fix the artist's page loaded successfully.
Is this change properly documented?
Yes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.