This commit is contained in:
James Barnsley
2018-02-23 17:10:27 +13:00
parent ac6e0eea0c
commit 2c0d75612f
2 changed files with 11 additions and 2 deletions

View File

@ -301,7 +301,7 @@ const MopidyMiddleware = (function(){
key: 'playback',
type: 'notification',
notification_type: 'info',
body: store.getState().pusher.username +' stopped playback',
content: store.getState().pusher.username +' stopped playback',
icon: (store.getState().core.current_track ? helpers.getTrackIcon(store.getState().core.current_track, store.getState().core) : false)
}
store.dispatch(pusherActions.deliverBroadcast(data));
@ -494,6 +494,15 @@ const MopidyMiddleware = (function(){
break;
}
var broadcast_data = {
key: 'playback',
type: 'notification',
notification_type: 'info',
content: store.getState().pusher.username +' is playing '+action.uris.length+' URIs',
icon: (store.getState().core.current_track ? helpers.getTrackIcon(store.getState().core.current_track, store.getState().core) : false)
}
store.dispatch(pusherActions.deliverBroadcast(broadcast_data));
// Stop the radio
if (store.getState().core.radio && store.getState().core.radio.enabled){
store.dispatch(pusherActions.stopRadio());