-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to watch age restricted videos. #29811
Comments
I've moved on to use the (in my opinion) more active youtube-dl fork, yt-dlp. With yt-dlp installed, this works for me (force-seekable allows you to skip around the video): REM Pipe to stdout ("-o -"), and then read from it with mpv ("mpv -")
yt-dlp -o - https://www.youtube.com/watch?v=foo |mpv --force-seekable=yes - |
extract a cookie from your chrome or firefox as mentioned below; and use the --cookies argument, works for me |
not everyone has google account, so it would be nice to have such feature w/o requiring login if it is actually possible |
here's the same workaround ronkwann mentioned but with more detail including a chrome extension for exporting the cookie: https://brian.carnell.com/articles/2021/downloading-age-restricted-videos-with-youtube-dl/ update: for Firefox users who don't want any chromium-based browsers on their pc, you can try this add-on which should do the same thing (untested): pros: easy, works assuming you meet the age-restriction and are ok being tracked for the specific video but just want an offline copy cons: not anonymous (requires youtube cookie so google can still track), you need a google account, article doesn't provide a firefox extension (see my update for a possible alternative), still need to meet age restriction requirements. unclear if this works on windows natively (probably works fine in cygwin / WSL) Edit: updated based on feedback below |
so does it work if i give it cookies, even though I have a non-age restriction verified account? I mean, no one wants to sent their real identity to google. Also, supposing it works, should I do |
doesn't seem to work
|
good point, I suppose your account also has to actually pass the age restrictions imposed by google / youtube. :-) Yeah, the workaround is not a mechanism for bypassing either the age restriction or tracking by google / youtube. It merely allows you to get an offline copy. There might be options like using a proxy service like nsfwyoutube but in my experience, in many cases those just don't work. e.g. from a video someone shared with me today (is a little gross but IMHO the age restriction is no way warranted) "Richard Stallman Eats Something From His Foot" at Nsfwyoutube, the video thumbnail displays but I am completly unable to actually play the video, in either Firefox v91 or Chromium v90.0 (on Fedora 34 for both). Likewise, youtube-dl gives
I did not test on Windows. TBH, I wasn't even aware that you could use On Fedora 34, the following works for me using a cookie that was downloaded in Chromium with me logged in on youtube with the extension mentioned in the article:
Downloaded video plays back fine as well. Also according to my notes from the last time I did use Hope that helps! |
I get 400 Bad Request error when try to authenticate in order to pass age restriction barrier ( $ youtube-dl https://youtu.be/a5-9vAHBNFI --username=MY_EMAIL
Type account password and press [Return]:
[youtube] Downloading login page
[youtube] Looking up account info
WARNING: Unable to look up account info: HTTP Error 400: Bad Request
[youtube] a5-9vAHBNFI: Downloading webpage
[youtube] a5-9vAHBNFI: Refetching age-gated info webpage
WARNING: unable to download video info webpage: HTTP Error 410: Gone
ERROR: Sign in to confirm your age
This video may be inappropriate for some users. |
inv.riverside.rocks seems to work ok-ish. It has had no issue playing the few age restricted videos I tried, and youtube-dl does download when you give a link. |
I have only downloaded youtube-dl.exe which I use together with mpv sometimes to watch youtube videos. The thing is that when I try to watch an age restricted video, I get this response:
I've seen some people suggest cookies.. But would there be a point in adding cookies if the age restriction system needs an irl identity just to let you watch the vid?
The text was updated successfully, but these errors were encountered: