Missing origin uri when playing entire playlist

This commit is contained in:
James Barnsley
2017-09-14 21:05:55 +12:00
parent 85c31112e1
commit 330cc5e049
5 changed files with 16 additions and 4 deletions

View File

@ -313,7 +313,7 @@ const MopidyMiddleware = (function(){
}
})
break
/*
case 'SPOTIFY_ALL_PLAYLIST_TRACKS_LOADED_FOR_PLAYING':
var uris = []
for (var i = 0; i < action.tracks.length; i++){
@ -321,6 +321,7 @@ const MopidyMiddleware = (function(){
}
store.dispatch(mopidyActions.playURIs(uris, action.uri))
break
*/
case 'MOPIDY_ENQUEUE_URIS':
@ -952,6 +953,7 @@ const MopidyMiddleware = (function(){
}
store.dispatch({ type: 'MOPIDY_LIBRARY_PLAYLISTS_LOADED', uris: playlist_uris_filtered });
store.dispatch({ type: 'MOPIDY_LIBRARY_PLAYLISTS_LOADED_ALL' });
// get the full playlist objects
for (var i = 0; i < playlist_uris_filtered.length; i++ ){

View File

@ -109,6 +109,9 @@ export default function reducer(mopidy = {}, action){
}
return Object.assign({}, mopidy, { library_playlists: helpers.removeDuplicates(uris) })
case 'MOPIDY_LIBRARY_PLAYLISTS_LOADED_ALL':
return Object.assign({}, mopidy, { library_playlists_loaded_all: true })
case 'MOPIDY_LIBRARY_PLAYLIST_CREATED':
var library_playlists = []
if (mopidy.library_playlists){