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 "Why is it presented that way? Check out our Q&A page or get the transcript of another video on the homepage.
'; } else { 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 'Check out our Q&A for more details or try again with another link on the homepage.
'; } ?>