From a46b2102a0c1859e2f4182eca06436b9a6eac7f7 Mon Sep 17 00:00:00 2001 From: edbrz9 Date: Thu, 29 Dec 2022 12:45:54 +0100 Subject: [PATCH] adding some debugging print --- proj/y2t/handler.php | 2 +- proj/y2t/y2t.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/proj/y2t/handler.php b/proj/y2t/handler.php index dfaeeed..6b2237c 100644 --- a/proj/y2t/handler.php +++ b/proj/y2t/handler.php @@ -19,7 +19,7 @@ $lang = $_POST['lang']; echo $lang; - $output = exec("python3 test.py"); + $output = exec("python3 y2t.py"); echo $output; sleep(5); echo "check" diff --git a/proj/y2t/y2t.py b/proj/y2t/y2t.py index 0c42eee..820e32d 100644 --- a/proj/y2t/y2t.py +++ b/proj/y2t/y2t.py @@ -4,6 +4,8 @@ import sys url = sys.argv[1] lang = sys.argv[2] +print("python script will now process url:" + url + "in lang:" + lang) + ydl_opts = { 'writesubtitles': True, 'writeautomaticsub': True,