mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue where soundcloud couldn't end song
This commit is contained in:
@@ -574,7 +574,7 @@ function end(obj, coll, guid, offline, socket) {
|
|||||||
if(id !== undefined && id !== null && id !== "") {
|
if(id !== undefined && id !== null && id !== "") {
|
||||||
|
|
||||||
if(!obj.hasOwnProperty("id") || !obj.hasOwnProperty("channel") ||
|
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 = {
|
var result = {
|
||||||
channel: {
|
channel: {
|
||||||
expected: "string",
|
expected: "string",
|
||||||
@@ -585,7 +585,7 @@ function end(obj, coll, guid, offline, socket) {
|
|||||||
got: obj.hasOwnProperty("pass") ? typeof(obj.pass) : undefined,
|
got: obj.hasOwnProperty("pass") ? typeof(obj.pass) : undefined,
|
||||||
},
|
},
|
||||||
id: {
|
id: {
|
||||||
expected: "string",
|
expected: "string || number",
|
||||||
got: obj.hasOwnProperty("id") ? typeof(obj.id) : undefined,
|
got: obj.hasOwnProperty("id") ? typeof(obj.id) : undefined,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user