Athlon1600 / youtube-downloader

:tv: PHP based alternative to youtube-dl and yt-dlp. Active and frequently updated! :star:
https://unblockvideos.com/
MIT License
805 stars 316 forks source link

Get video captions #167

Closed numairawan closed 1 year ago

numairawan commented 2 years ago

I added the few functions to get the caption links according to my need. I also want to add caption formats but later.

$downloadOptions = $youtube->getDownloadLinks("https://www.youtube.com/watch?v=aqz-KE-bpKQ");

$captions = $downloadOptions->getAllCaptions();