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
+8 -6
+8 -6
View File
@@ -44,17 +44,19 @@ def run_job(job):
clean_name = filename.replace(".mp4", "") clean_name = filename.replace(".mp4", "")
script_path = os.path.join(os.path.dirname(__file__), "proxer-dl-video.py") script_path = os.path.join(os.path.dirname(__file__), "proxer-dl-video.py")
VENV_PYTHON = "/home/pm2/Proxer-Downloader/.venv/bin/python"
cmd = [ cmd = [
"python", VENV_PYTHON,
script_path, script_path,
"-u", url, "-u", url,
"-f", f'"{clean_name}"', # wrap filename in quotes "-f", clean_name, # No need for extra quotes here
"-t", f'"{token}"', # wrap token in quotes "-t", token, # No need for extra quotes here
"-o", OUTPUT_DIR "-o", OUTPUT_DIR
] ]
print("Running:", " ".join(cmd)) print("Running:", " ".join(cmd))
try: try: