mirror of https://github.com/calzoneman/sync.git
Log when a video is added
This commit is contained in:
parent
829cc090fa
commit
bf70d2760b
|
@ -627,7 +627,7 @@ PlaylistModule.prototype.handleJumpTo = function (user, data) {
|
|||
var old = this.current;
|
||||
this.current = to;
|
||||
this.startPlayback();
|
||||
this.channel.logger.log("[playlist] " + user.getName() + " skipped" + title);
|
||||
this.channel.logger.log("[playlist] " + user.getName() + " skipped " + title);
|
||||
|
||||
if (old && old.temp) {
|
||||
this._delete(old.uid);
|
||||
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue