added venv

This commit is contained in:
DeSqBlocki committed 2025-12-06 13:30:50 +01:00
1 parent 654f95ac6f
commit 5e9d0e4aba
1 file changed
+5 -3
+5 -3
View File
@@ -44,17 +44,19 @@ def run_job(job):
clean_name = filename.replace(".mp4", "")
script_path = os.path.join(os.path.dirname(__file__), "proxer-dl-video.py")
VENV_PYTHON = "/home/pm2/Proxer-Downloader/.venv/bin/python"
cmd = [
"python",
VENV_PYTHON,
script_path,
"-u", url,
"-f", f'"{clean_name}"', # wrap filename in quotes
"-t", f'"{token}"', # wrap token in quotes
"-f", clean_name, # No need for extra quotes here
"-t", token, # No need for extra quotes here
"-o", OUTPUT_DIR
]
print("Running:", " ".join(cmd))
try: