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.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
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