Limiting artist's albums by region (related to #25)

This commit is contained in:
James Barnsley
2017-01-18 08:11:51 +13:00
parent c8ea68575f
commit d0d92b807a

View File

@ -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',