Separating seeds and tunabilities fields

This commit is contained in:
James Barnsley
2018-01-17 10:17:30 +13:00
parent d54a75fedf
commit 0c1aaeced8
11 changed files with 248 additions and 170 deletions

View File

@ -907,13 +907,11 @@ export function getRecommendations(uris = [], limit = 20, tunabilities = null){
}
// construct our endpoint URL with all the appropriate arguments
var endpoint = 'recommendations'
endpoint += '?seed_artists='+artists_ids.join(',')
endpoint += '&seed_tracks='+tracks_ids.join(',')
endpoint += '&seed_genres='+genres.join(',')
endpoint += '&limit='+limit
console.log(tunabilities);
var endpoint = 'recommendations';
endpoint += '?seed_artists='+artists_ids.join(',');
endpoint += '&seed_tracks='+tracks_ids.join(',');
endpoint += '&seed_genres='+genres.join(',');
endpoint += '&limit='+limit;
if (tunabilities){
for (var key in tunabilities){