-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue in getting list of AudioFeatures for multiple trackIds #45
Comments
@rinukkusu As I checked the Spotify Api to get audioFeatures for multiple tracksIds, I found that the response returned by this api returns json with different key { In the library's audio_features.dart , this function Future<Iterable> list(Iterable trackIds) having this line
So, If we update the key as per api response , its working as expected and providing the correct result. 'audio-features' should be 'audio_features', -- |
Hi @rakeshparveen5 - thanks for finding this bug - care to create a PR? |
ok. @rinukkusu I will create a PR 👍 |
Your fix is published in |
When I try to get the audioFeature for single trackId , it works fine.
This code returns correct result and works fine:
var trackFeatures = await spotifyApi.audioFeatures.get("Single 1 spotify id");
But if I try to get list of audioFeatures for multiple trackIds I am getting exception using below code:
List ids = ["track id 1 from Spotify", "track id 2 from Spotify" ];
var trackFeatures = await spotifyApi.audioFeatures.list(ids);
This is the stacktrace :
The error is here in audio_features.dart
}
The text was updated successfully, but these errors were encountered: