Athlon1600 / youtube-downloader

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

This site can’t be reached #158

Open kihanb opened 2 years ago

kihanb commented 2 years ago

Hi, The links are broken! when I tried play the links with script this error is displayed: This site can’t be reached

DarrylMcoder commented 2 years ago

Which links are broken. It's working great on my website. Can you please give everyone more details?

kihanb commented 2 years ago

I think my host ip blocked by youtube! I was wondering how i can set proxy for it?

DarrylMcoder commented 2 years ago

The library has a setProxy method on the Browser class. I use it to set a proxy after catching the TooManyRequestsExeption. Use it like this: $youtube = new \YouTube\YouTubeDownloader(); $youtube->getBrowser()->setProxy($proxy);