Fixed issue where soundcloud couldn't end song

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-23 11:56:30 +02:00
parent 7f729c22fd
commit 5aa5c2b572

View File

@@ -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,
},
};