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.

[YouTube] Age verification issues - Can't download video.

See original GitHub issue

Checklist

  • I’m reporting a broken site support
  • I’ve verified that I’m running youtube-dl version 2021.03.25
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar issues including closed ones (i found one similar but my --cookies are not expired as stated in this issue #28468)

Verbose log

youtube-dl --verbose https://www.youtube.com/watch?v=rR8s72aouNE
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=rR8s72aouNE']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.03.25
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 2021-03-28-git-8b2bde0494-full_build, ffprobe 2021-03-28-git-8b2bde0494-full_build
[debug] Proxy map: {}
[youtube] rR8s72aouNE: Downloading webpage
[youtube] rR8s72aouNE: Refetching age-gated info webpage
ERROR: Sign in to confirm your age
This video may be inappropriate for some users.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5nc448kk\build\youtube_dl\YoutubeDL.py", line 806, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5nc448kk\build\youtube_dl\YoutubeDL.py", line 827, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5nc448kk\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5nc448kk\build\youtube_dl\extractor\youtube.py", line 1658, in _real_extract
youtube_dl.utils.ExtractorError: Sign in to confirm your age
This video may be inappropriate for some users.

Description

  • Hello

  • I tried to download an age-gated video and i got some age-verification errors as you can see in the Verbose log above.

  • When i tried to provide the --cookies then i got the error below:

youtube-dl --verbose --cookies C:/Users/account/Desktop/cookies.txt https://www.youtube.com/watch?v=rR8s72aouNE
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--cookies', 'C:/Users/account/Desktop/cookies.txt', 'https://www.youtube.com/watch?v=rR8s72aouNE']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.03.25
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 2021-03-28-git-8b2bde0494-full_build, ffprobe 2021-03-28-git-8b2bde0494-full_build
[debug] Proxy map: {}
[youtube] rR8s72aouNE: Downloading webpage
ERROR: Verify your age
Complete a brief check to show you're old enough to watch this video. Learn more
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5nc448kk\build\youtube_dl\YoutubeDL.py", line 806, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5nc448kk\build\youtube_dl\YoutubeDL.py", line 827, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5nc448kk\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp5nc448kk\build\youtube_dl\extractor\youtube.py", line 1658, in _real_extract
youtube_dl.utils.ExtractorError: Verify your age
Complete a brief check to show you're old enough to watch this video. Learn more
  • I’m signed in to my account and i verified that the --cookies are not expired. and of course my date of birth is over 18 years.

  • I know that there is an age-restriction in the EU region, but i also can’t download using just the normal command as with all other age-gated videos.

  • What gives?

Capture 28_03_2021_19_55_29

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:12
  • Comments:32

github_iconTop GitHub Comments

11reactions
fosamcommented, Mar 30, 2021

My issue(#28468) ended by @dstftw because the cookie seems to be expired. but as I wrote in the issue, it was the fresh cookies.txt. This is not going to happen in the United States, so this is unlikely to be fixed.

  • My cookies are not expired too.

  • Does that mean the contrubutors are unlikely to fix any issues that occure outside the US

8reactions
Suikacommented, Mar 29, 2021

You are probably connecting from EU, right? A change to YT was announced ~4 month that there will be extra steps for age verification in EU, iirc. If you connect from outside of EU, it should work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Watch age-restricted videos - YouTube Help
What age restriction means for viewers. Age-restricted videos are not viewable if you: Are signed out; Are under 18 years of age; Are...
Read more >
So there is no way to download youtube vids with age ... - Reddit
Just search for some adult videos, and try to watch them while you are NOT signed in. If you are already logged in,...
Read more >
How to watch age restricted videos on youtube without signing ...
Watch Age Restricted Videos Without Google account How to watch age restricted videos on youtube without signing in - 2022.
Read more >
Easy Ways to Bypass Youtube Age Restriction - Electronics Hub
The safest and easiest method to bypass the age restriction problem on Youtube is to download and use the FreeTube application on your...
Read more >
How to Bypass YouTube Age Restriction - Alphr
The easiest way to resolve this issue would be simply to log in to your account. However, if that's not an option, there...
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 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