Current track now using full track index

This commit is contained in:
James Barnsley
2017-06-07 09:05:56 +12:00
parent 065d4e0a63
commit d2261878c7
7 changed files with 64 additions and 54 deletions

View File

@ -74,18 +74,6 @@ const SpotifyMiddleware = (function(){
store.dispatch( spotifyActions.savePlaylist( action.key, action.name, action.is_public ))
break
// when our mopidy server current track changes
case 'MOPIDY_CURRENTTLTRACK':
// proceed as usual so we don't inhibit default functionality
next(action)
// if the current track is a spotify track
if( action.data && action.data.track.uri.substring(0,14) == 'spotify:track:' ){
store.dispatch( spotifyActions.getTrack( action.data.track.uri ) )
}
break
// when radio returns
case 'PUSHER_RADIO_STARTED':
case 'PUSHER_RADIO_CHANGED':