Fixed now-playing not being sent correctly from API

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-02 11:07:54 +01:00
parent a7948d97c6
commit e0ee2142b5

View File

@@ -452,7 +452,7 @@ router.route('/api/list/:channel_name/:video_id').post(function(req,res) {
});
} else if(set_np) {
Frontpage.update_frontpage(channel_name, video_id, title, function() {
io.to(channel_name).emit("np", new_song);
io.to(channel_name).emit("np", {np: [new_song], conf: [conf]});
postEnd(channel_name, configs, new_song, guid, res, authenticated);
});
} else {