sanitized toekn

This commit is contained in:
DeSqBlocki committed 2025-12-06 14:17:16 +01:00
1 parent 8022548d37
commit 566a8e5905
1 file changed
+2 -2
+2 -2
View File
@@ -21,9 +21,9 @@ async function runJob(job) {
const venvPython = "/home/pm2/Proxer-Downloader/.venv/bin/python"; const venvPython = "/home/pm2/Proxer-Downloader/.venv/bin/python";
const cleanName = job.filename.replace(".mp4", ""); 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); console.log("Running:", command);