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 '

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.

'; - + echo '

You can copy and paste them one by one in ChatGPT.

'; + echo "

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.

"; + foreach ($output as $item) { echo ""; echo $item; echo ""; } + + echo '

Why is it presented that way? Check out our Q&A page or get the transcript of another video on the homepage.

'; + } else { echo '
'; echo '

Hum, looks like something went wrong...

'; echo "

The video might not have downloadable subtitles, or maybe it's not even a YouTube video?

"; echo '
'; + echo '

Check out our Q&A for more details or try again with another link on the homepage.

'; } ?>