mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue with crashing server
This commit is contained in:
@@ -627,7 +627,9 @@ function send_play(coll, socket, broadcast) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function sendColor(coll, socket, id) {
|
function sendColor(coll, socket, id) {
|
||||||
|
if(coll != undefined) {
|
||||||
coll = coll.replace(/ /g,'');
|
coll = coll.replace(/ /g,'');
|
||||||
|
}
|
||||||
var url = 'https://img.youtube.com/vi/'+id+'/mqdefault.jpg';
|
var url = 'https://img.youtube.com/vi/'+id+'/mqdefault.jpg';
|
||||||
Jimp.read(url).then(function (image) {
|
Jimp.read(url).then(function (image) {
|
||||||
|
|
||||||
|
|||||||
@@ -80,9 +80,6 @@ function check_error_video(msg, channel) {
|
|||||||
got: msg.hasOwnProperty("title") ? typeof(msg.title) : undefined,
|
got: msg.hasOwnProperty("title") ? typeof(msg.title) : undefined,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
if(socket) {
|
|
||||||
socket.emit("update_required", result);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
channel = channel.replace(/ /g,'');
|
channel = channel.replace(/ /g,'');
|
||||||
|
|||||||
Reference in New Issue
Block a user