Skip to content

Commit

Permalink
Country and Locale for Genre/Mood, resolves #25
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedb committed Jan 9, 2017
1 parent bebf968 commit 287f123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/services/spotify/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export function getCategories(){

dispatch({ type: 'SPOTIFY_CATEGORIES_LOADED', data: false });

sendRequest( dispatch, getState, 'browse/categories?limit=50' )
sendRequest( dispatch, getState, 'browse/categories?limit=50&country='+getState().spotify.country+'&locale='+getState().spotify.locale )
.then( response => {
dispatch({
type: 'SPOTIFY_CATEGORIES_LOADED',
Expand Down Expand Up @@ -299,7 +299,7 @@ export function getCategoryPlaylists( id ){

dispatch({ type: 'SPOTIFY_CATEGORY_PLAYLISTS_LOADED', data: false });

sendRequest( dispatch, getState, 'browse/categories/'+id+'/playlists?limit=50' )
sendRequest( dispatch, getState, 'browse/categories/'+id+'/playlists?limit=50&country='+getState().spotify.country+'&locale='+getState().spotify.locale )
.then( response => {
dispatch({
type: 'SPOTIFY_CATEGORY_PLAYLISTS_LOADED',
Expand Down

0 comments on commit 287f123

Please sign in to comment.