Fix #272
This commit is contained in:
parent
eee17f9daa
commit
4884d8d691
|
@ -1274,8 +1274,12 @@ Channel.prototype.addMedia = function(data, user) {
|
||||||
: this.opts.maxlength;
|
: this.opts.maxlength;
|
||||||
|
|
||||||
var postAdd = function (item, cached) {
|
var postAdd = function (item, cached) {
|
||||||
if(item.media.type === "cu" && data.title)
|
if(item.media.type === "cu" && data.title) {
|
||||||
item.media.title = 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.logger.log("### " + user.name + " queued " + item.media.title);
|
||||||
self.sendAll("queue", {
|
self.sendAll("queue", {
|
||||||
item: item.pack(),
|
item: item.pack(),
|
||||||
|
|
Loading…
Reference in a new issue