NewPipeExtractor
NewPipeExtractor copied to clipboard
[Feature Request] Add Bypass YouTube Age Restriction script
Checklist
- [x] I checked, but didn't find any duplicates (open OR closed) of this issue in the repo.
- [x] I have read the contribution guidelines given at https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md.
- [x] This issue contains only one feature request. I will open one issue for every feature I want to request.
Describe the feature you want
This is a script that allows the user to bypass YouTube's age restriction, could be implemented into NewPipe?
Is your feature request related to a problem? Please describe it
Age restriction imposes people to make and use a Google account and to submit a personal document if they live in the EU. As reported in TeamNewPipe/NewPipe#5006 and TeamNewPipe/NewPipe#5518 many YouTube age restricted videos don't work on NewPipe.
The "account-proxy" server they include seems to be rather interesting! I wonder if Aurora Store's token dispenser could be used in a similar way.
For example, you can bypass it like so: https://youtube-proxy.zerody.one/getPlayer?videoId=r4JWI4UDOrc&clientName=WEB&clientVersion=2.20210728.00.00&isEmbed=false
The relevant code is used in their extension is here: https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass/blob/4cde705cf4315a26587e75f09682501492e20043/src/components/proxy.js#L10-L19
Can you look at what yt-dlp does? It uses some kind of "android agegate player API". I was able to download videos with it that NewPipe was unable to play due to age restriction.
example link : https://www.youtube.com/watch?v=DKBKF1cbQzs
Note: This seems to affect all videos now (see https://github.com/TeamNewPipe/NewPipe/issues/8102 for more information).