Log when a video is added

This commit is contained in:
Calvin Montgomery 2015-01-03 16:03:15 -05:00
parent 829cc090fa
commit bf70d2760b
1 changed files with 4 additions and 1 deletions

View File

@ -937,6 +937,9 @@ PlaylistModule.prototype._addItem = function (media, data, user, cb) {
self.meta.count++;
self.meta.rawTime += media.seconds;
self.meta.time = util.formatTime(self.meta.rawTime);
var m = item.media;
self.channel.logger.log("[playlist] " + (data.queueby || "(anonymous)") +
" added " + m.title + " (" + m.type + ":" + m.id + ")");
var perms = self.channel.modules.permissions;
self.channel.users.forEach(function (u) {