From 355dd0f17b02dea6f077b3ed95ea26d6a5618587 Mon Sep 17 00:00:00 2001 From: edbrz9 Date: Sun, 1 Jan 2023 19:55:51 +0100 Subject: [PATCH] debug YT2P handler --- proj/YT2P/handler.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proj/YT2P/handler.php b/proj/YT2P/handler.php index c801e6f..1d16342 100644 --- a/proj/YT2P/handler.php +++ b/proj/YT2P/handler.php @@ -21,7 +21,10 @@ $cmd = "python3 y2t.py " . $url . " " . $lang ; exec($cmd, $output, $return); - + echo "

Debug strel(output):"; + echo strlen($output); + echo "

"; + if (strlen($output) > 0) { echo '

Here are your prompts!

'; echo '

You can copy them one by one in ChatGPT. Why is it presented that way? Check out our Q&A page.

';