summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index 73e305f..0180b55 100644
--- a/index.js
+++ b/index.js
@@ -59,7 +59,7 @@ const requestListener = function(req, res) {
console.log(temp[uid].parts, req.headers["user-agent"], userIp);
if (temp[uid].parts.length >= 2) {
- if (temp[uid].parts.length === 3 && temp[uid].parts[0] === "authorize") {
+ if (temp[uid].parts.length >= 3 && temp[uid].parts.length < 6 && temp[uid].parts[0] === "authorize") {
let song = temp[uid].parts[1].replace(/[^0-9a-f]/gm, "");
let quality = temp[uid].parts[2].replace(/[^a-z]/gm, "");
let ua