From f249cb85ec4566b9accb4f8ef40a84df46a40716 Mon Sep 17 00:00:00 2001 From: Radiquum Date: Sat, 31 May 2025 12:19:24 +0500 Subject: [PATCH] fix/player-parsers: https://github.com/Radiquum/AniX/pull/6#discussion_r2115719910 --- player-parsers/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/player-parsers/index.ts b/player-parsers/index.ts index d66c34a..e3b891f 100644 --- a/player-parsers/index.ts +++ b/player-parsers/index.ts @@ -11,8 +11,9 @@ const port = 7000; const allowedPlayers = ["kodik", "libria", "sibnet"]; app.get("/", (req, res) => { - const url = req.query.url; - const player = req.query.player; + const urlParams = new URLSearchParams(req.query) + const url = urlParams.get("url"); + const player = urlParams.get("player"); if (!url) { asJSON(res, { message: "no 'url' query provided" }, 400)