Syntax
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mopidy-iris",
|
||||
"version": "3.13.0",
|
||||
"version": "3.13.1",
|
||||
"description": "Mopidy HTTP interface",
|
||||
"repository": "https://github.com/jaedb/iris",
|
||||
"author": "James Barnsley <james@barnsley.nz>",
|
||||
|
||||
@ -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