JoshLmao / Spotify4Unity

🎮🎵 Add the SpotifyAPI.NET library into Unity, enabling access to the Spotify Web API, allowing for control of Spotify and accessing the world of music
https://assetstore.unity.com/packages/tools/integration/spotify4unity-ui-tools-spotify-authorization-129028
MIT License
94 stars 8 forks source link

Spotify API returns Float for Follower Count #56

Open tempostudios opened 6 months ago

tempostudios commented 6 months ago

In the Assembly package,

FullArtist.Followers

is an integer. Spotify returns a float, which throws a JsonReaderException:

JsonReaderException: Input string '2476322.0' is not a valid integer. Path 'artists[0].followers.total', line 1, position 140.

Thoughts on how to amend the Assembly script to accommodate either?