Syntax
This commit is contained in:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user