From aa9b0908790f38edcff034776f6f30e6558f8b4c Mon Sep 17 00:00:00 2001 From: edbrz9 <ed@brz9.devd> Date: Mon, 2 Jan 2023 19:08:36 +0100 Subject: [PATCH] handler UX update --- proj/YT2P/handler.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/proj/YT2P/handler.php b/proj/YT2P/handler.php index df15202..be8495d 100644 --- a/proj/YT2P/handler.php +++ b/proj/YT2P/handler.php @@ -24,18 +24,23 @@ 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>'; - + echo '<p>You can copy and paste them one by one in ChatGPT.</p>'; + echo "<p>Note that the first box contains the full transcript, it might be too long for ChatGPT, that's why you'll find below the transcript in several parts (for longer videos) and a prompt at the end that usually gives good results.</p>"; + foreach ($output as $item) { echo "<copbox>"; echo $item; echo "</copbox>"; } + + echo '<p>Why is it presented that way? Check out our <a href="./qna.php" target="_blank">Q&A page</a> or get the transcript of another video on the <a href="./index.php" target="_blank">homepage</a>.</p>'; + } else { echo '<section class="error">'; echo ' <p>Hum, looks like something went wrong...</p>'; echo " <p>The video might not have downloadable subtitles, or maybe it's not even a YouTube video?</p>"; echo '</section>'; + echo '<p>Check out our <a href="./qna.php" target="_blank">Q&A</a> for more details or try again with another link on the <a href="./index.php" target="_blank">homepage</a>.</p>'; } ?>