sanitized toekn
This commit is contained in:
1 parent
8022548d37
commit
566a8e5905
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user