From d0d92b807aa627b10e63239886d4f2a180047909 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Wed, 18 Jan 2017 08:11:51 +1300 Subject: [PATCH] Limiting artist's albums by region (related to #25) --- src/js/services/spotify/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/services/spotify/actions.js b/src/js/services/spotify/actions.js index a0d50d8d..ff09cb5b 100755 --- a/src/js/services/spotify/actions.js +++ b/src/js/services/spotify/actions.js @@ -648,7 +648,7 @@ export function getArtist( uri ){ }); // now go get our artist albums - sendRequest( dispatch, getState, 'artists/'+ helpers.getFromUri('artistid', uri) +'/albums' ) + sendRequest( dispatch, getState, 'artists/'+ helpers.getFromUri('artistid', uri) +'/albums?market='+getState().spotify.country ) .then( response => { dispatch({ type: 'SPOTIFY_ARTIST_ALBUMS_LOADED',