ytarchive icon indicating copy to clipboard operation
ytarchive copied to clipboard

Bypass age-restriction

Open Lytexx opened this issue 3 years ago • 9 comments

youtube-dl can bypass it so maybe you could add it to the script

since you have to actually verify your age if you live in the eu this bypass doesnt work https://support.google.com/youtube/answer/10070779#zippy=%2Cif-youre-in-the-european-union-eu-european-economic-area-eea-switzerland-or-united-kingdom

i use this tempermonkey script to get around that https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass it looks well documented to me maybe you can understand how it works

Lytexx avatar May 18 '21 14:05 Lytexx

IMAGINE living in the EU.

Looks like the userscript attempts to get around it by changing up params on get_video_info. That explains why streamlink tries three different param sets on it. I can do that too, but given the current state of things with get_video_info breaking, it might not actually help much.

Kethsar avatar May 18 '21 14:05 Kethsar

Some mad lad might have figured out a fix for get_video_info URLs by adding another param to it. How often are age-restricted streams an issue? Might not put the full set of parameter combinations in until I get the golang rewrite running if it's almost never an issue.

Kethsar avatar May 19 '21 14:05 Kethsar

How often are age-restricted streams an issue? Might not put the full set of parameter combinations in until I get the golang rewrite running if it's almost never an issue.

its not that urgent you can add it after the rewrite

Lytexx avatar May 19 '21 15:05 Lytexx

Just to ask, but have you run into any age-restricted streams as of yet, or was this more of a preemptive request? With youtube trying to lock down usage of get_video_info more and more, it might not become viable to keep using it. I've removed it's usage for the time being but I'll re-work it if you've actually had an issue with livestreams and not just VODs.

Kethsar avatar Jul 01 '21 17:07 Kethsar

Just to ask, but have you run into any age-restricted streams as of yet, or was this more of a preemptive request?

no i made this issue for someone else that has run into age-restricted streams and could not record them because of that

if you are not from the eu you just need to click a "I understand and wish to proceed" button it would probably be a better solution to just let ytarchive simulate clicking it

Lytexx avatar Jul 01 '21 20:07 Lytexx

The way it's made right now, that's not really an option, so I'll keep the original plan of looking into it when I ~~never~~ finish the Golang rewrite.

Kethsar avatar Jul 01 '21 23:07 Kethsar

@Kethsar would it be possible to add this now that the golang rewrite is done? the script seems to have been updated aswell https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass

Lytexx avatar Jan 16 '22 08:01 Lytexx

Yeah, next time I get the urge to do more than a small bit of programming, I'll probably work my way through some of the tickets finally.

Kethsar avatar Jan 17 '22 01:01 Kethsar