From 566a8e5905dd06d7d5113985bbe8406d0968819b Mon Sep 17 00:00:00 2001 From: DeSqBlocki Date: Sat, 6 Dec 2025 14:17:16 +0100 Subject: [PATCH] sanitized toekn --- queue_worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queue_worker.js b/queue_worker.js index 85f097f..99ba740 100644 --- a/queue_worker.js +++ b/queue_worker.js @@ -21,9 +21,9 @@ async function runJob(job) { const venvPython = "/home/pm2/Proxer-Downloader/.venv/bin/python"; const cleanName = job.filename.replace(".mp4", ""); + const safeToken = token.replace(/^"+|"+$/g, ''); // strip extra quotes + const command = `${venvPython} ${scriptPath} -u "${url}" -f "${cleanName}" -t "${safeToken}" -o "${OUTPUT_DIR}"`; - const command = `${venvPython} scripts/proxer-dl-video.py \ --u "${job.url}" -f "${cleanName}" -t ${job.token} -o "${OUTPUT_DIR}"`; console.log("Running:", command);