From a43ace7741543856f354c1c1de16b67335802bbb Mon Sep 17 00:00:00 2001
From: edbrz9 <ed@brz9.devd>
Date: Sun, 1 Jan 2023 20:03:14 +0100
Subject: [PATCH] this should work

---
 proj/YT2P/handler.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/proj/YT2P/handler.php b/proj/YT2P/handler.php
index e29fb41..24b500b 100644
--- a/proj/YT2P/handler.php
+++ b/proj/YT2P/handler.php
@@ -21,11 +21,11 @@
   $cmd = "python3 y2t.py " . $url . " " . $lang ; 
   
   exec($cmd, $output, $return);
-  echo "<h4> Debug sizeof output:";
-  echo sizeof($output);
-  echo "</h4>";
+  //echo "<h4> Debug sizeof output:";
+  //echo sizeof($output);
+  //echo "</h4>";
 
-  if (strlen($output) > 0) {
+  if (sizeof($output) > 0) {
     echo '<h4>Here are your prompts!</h4>';
     echo '<p>You can copy them one by one in ChatGPT. Why is it presented that way? Check out our <a href="./qna.php" target="_blank">Q&A page</a>.</p>';