From 5aa5c2b5723d686d9f9b33f13dcb44ea7f0f1528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Sun, 23 Sep 2018 11:56:30 +0200 Subject: [PATCH] Fixed issue where soundcloud couldn't end song --- server/handlers/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/handlers/list.js b/server/handlers/list.js index b0a73be6..1bc38a75 100644 --- a/server/handlers/list.js +++ b/server/handlers/list.js @@ -574,7 +574,7 @@ function end(obj, coll, guid, offline, socket) { if(id !== undefined && id !== null && id !== "") { if(!obj.hasOwnProperty("id") || !obj.hasOwnProperty("channel") || - typeof(obj.id) != "string" || typeof(obj.channel) != "string") { + (typeof(obj.id) != "string" && typeof(obj.id) != "number") || typeof(obj.channel) != "string") { var result = { channel: { expected: "string", @@ -585,7 +585,7 @@ function end(obj, coll, guid, offline, socket) { got: obj.hasOwnProperty("pass") ? typeof(obj.pass) : undefined, }, id: { - expected: "string", + expected: "string || number", got: obj.hasOwnProperty("id") ? typeof(obj.id) : undefined, }, };