mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #94] [CLOSED] Fix deserializing Audio Analysis response #239
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#239
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/94
Author: @Rigellute
Created: 4/28/2020
Status: ❌ Closed
Base:
master← Head:master📝 Commits (2)
62e5ac2Updatetimestampfield to be a string8d15009Make all analysis fields optional📊 Changes
1 file changed (+54 additions, -54 deletions)
View changed files
📝
src/model/audio.rs(+54 -54)📄 Description
It seems the spotify API has changed their responses from the audio_analysis endpoint.
A number of fields seem to be missing and/or have different types now - some numbers are now contained in strings e.g.
timestamp.I've gone the heavy handed route and made all the fields optional. I started trying to only make certain fields optional but this was hit and miss as I tried other tracks.
Perhaps there is a better solution?
The errors can be reproduced by running
This should close #93
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.