From 53f6a39a7aca706813e36c66de52088722149977 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Fri, 5 Jul 2013 23:40:31 -0400 Subject: [PATCH] Fix channeldata API for current media --- api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.js b/api.js index 67da6a5b..38515f9e 100644 --- a/api.js +++ b/api.js @@ -136,7 +136,7 @@ function handleChannelData(params, req, res) { if(d.loaded) { var chan = Server.channels[cname]; d.pagetitle = chan.opts.pagetitle; - d.media = chan.media ? chan.media.pack() : {}; + d.media = chan.playlist.current ? chan.playlist.current.media.pack() : {}; d.usercount = chan.users.length; d.users = []; for(var i = 0; i < chan.users.length; i++) {