azihassan / youtube-d

A fast command-line Youtube downloader
MIT License
8 stars 0 forks source link

Downloads fail in Github actions #80

Closed azihassan closed 1 month ago

azihassan commented 1 month ago

https://github.com/azihassan/youtube-d/actions/runs/10425351210/job/28876083685

The reason for failure is as follows:

Video is unplayable because of status LOGIN_REQUIRED

azihassan commented 1 month ago

Looks like youtube is blocking requests from Github. Running curl -Lo test.html --user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.3' https://www.youtube.com/watch\?v\=R85MK830mMo in my machine results in a working test.html file, whereas running it from Github results in a file that contains LOGIN_REQUIRED and a message asking me to login to prove that I'm not a bot.

{"playabilityStatus":{"status":"LOGIN_REQUIRED","reason":"Sign in to confirm you’re not a bot"},...}
azihassan commented 1 month ago

I disabled the flakey tests for now seeing as I'm still able to use youtube-d correctly on my machine. Will reopen if needed