diff --git a/server/routing/api.js b/server/routing/api.js index a8014be0..fcd4cca4 100644 --- a/server/routing/api.js +++ b/server/routing/api.js @@ -20,7 +20,18 @@ router.route('/api/list/:channel_name').get(function(req, res) { res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); var channel_name = req.params.channel_name; - db.collection(channel_name).find({views: {$exists: false}}, {start: 1, end: 1, added: 1, id: 1, title: 1, votes: 1, duration: 1, type: 1, _id: 0}, function(err, docs) { + db.collection(channel_name).find({views: {$exists: false}}, { + start: 1, + end: 1, + added: 1, + id: 1, + title: 1, + votes: 1, + duration: 1, + type: 1, + _id: 0, + now_playing: 1, + }, function(err, docs) { if(docs.length > 0) { res.setHeader('Content-Type', 'application/json'); res.send(JSON.stringify(docs));