question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

YT age restriction bypass broke

See original GitHub issue

Checklist

Region

No response

Description

Yt-dlp age restriction bypass doesn’t seem to work anymore, I tested with multiple videos and they are all broken (one of the videos is playable on invidious 2022.03.15-5b82370b (https://invidious.snopyta.org)). This might be a duplicate of #2923

https://youtube.com/watch?v=CUO8secmc0g https://youtube.com/watch?v=dIZ-e4WwJ5w

Verbose log

[debug] Command-line config: ['-vU', 'https://youtube.com/watch?v=CUO8secmc0g']
[debug] User config "/home/doggo/.config/yt-dlp/config": ['-f', 'bestvideo[height<=1080]+bestaudio/best']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.03.08.1 [c0c2c57d3]
[debug] Python version 3.10.2 (CPython 64bit) - Linux-5.16.15-arch1-1-x86_64-with-glibc2.35
[debug] exe versions: ffmpeg 5.0 (setts), ffprobe 5.0
[debug] Optional libraries: brotli, Crypto, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.03.08.1, Current version: 2022.03.08.1
yt-dlp is up to date (2022.03.08.1)
[debug] [youtube] Extracting URL: https://youtube.com/watch?v=CUO8secmc0g
[youtube] CUO8secmc0g: Downloading webpage
[youtube] CUO8secmc0g: Downloading android player API JSON
[youtube] CUO8secmc0g: Downloading android agegate player API JSON
[youtube] CUO8secmc0g: Downloading web agegate player API JSON
ERROR: [youtube] CUO8secmc0g: Sign in to confirm your age. This video may be inappropriate for some users.
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 617, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py", line 3339, in _real_extract
    self.raise_no_formats(reason, expected=True)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1126, in raise_no_formats
    raise ExtractorError(msg, expected=expected, video_id=video_id)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Doktor-Xcommented, Mar 27, 2022

I dont get why google is so determined to prevent users to see age restricted content, and constantly making changes to api

1reaction
nicolaasjancommented, Mar 25, 2022

Note that afaik, unverified logged-in cookies still work to bypass the ID verification requirement in EU

Confirmed. Here in The Netherlands the second video downloaded with --cookies-from-browser.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I bypass the new youtube age restriction block? - Reddit
it seems like youtube isnt forced to perform the age verification check, since they really hunt dont any possibility to bypass it. nearly...
Read more >
Bypass Age Restrictions on YouTube Videos: 8 Simple Methods
1. The easiest method is to sign in with an adult Google account. Whether your YouTube account is under 18 or you just...
Read more >
5 Ways to ByPass YouTube Age Restriction in 2022 - Chrunos
According to YouTube Community Guidelines, Age-restricted YouTube videos are not viewable to users who are under 18 years old or signed out.
Read more >
How to bypass YouTube's age restriction without signing in
If you're looking to watch an age-restricted video on your PC or Mac, then FreeTube is the easiest software to use, and is...
Read more >
Easy Ways to Bypass Youtube Age Restriction - Electronics Hub
In most cases, you will be able to watch the age-restricted content by simply logging into your Youtube account if you are older...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found