From 4884d8d691e9bb98200660d90c653b584b48ef2c Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 28 Aug 2013 10:32:35 -0500 Subject: [PATCH] Fix #272 --- channel.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/channel.js b/channel.js index 39b364f6..f3232522 100644 --- a/channel.js +++ b/channel.js @@ -1274,8 +1274,12 @@ Channel.prototype.addMedia = function(data, user) { : this.opts.maxlength; var postAdd = function (item, cached) { - if(item.media.type === "cu" && data.title) - item.media.title = data.title; + if(item.media.type === "cu" && data.title) { + var t = data.title; + if(t.length > 100) + t = t.substring(0, 97) + "..."; + item.media.title = t; + } self.logger.log("### " + user.name + " queued " + item.media.title); self.sendAll("queue", { item: item.pack(),