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.

Fix for "Sign in to confirm your age. This video may be inappropriate for some users" ?

See original GitHub issue

Checklist

  • I’m reporting a site feature request
  • I’ve verified that I’m running yt-dlp version 2022.05.18 (update instructions) or later (specify commit)
  • I’ve checked that all provided URLs are playable in a browser with the same IP and same login details
  • I’ve searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I’ve read the guidelines for opening an issue
  • I’ve read about sharing account credentials and I’m willing to share it if required

Region

Russia

Example URLs

https://youtu.be/gdEuD9MMZd0

Description

This video can be viewed when user is logged into youtube, but it is (almost?) impossible to get this video with yt_dlp:

yt-dlp.exe -F https://youtu.be/gdEuD9MMZd0 [youtube] gdEuD9MMZd0: Downloading webpage [youtube] gdEuD9MMZd0: Downloading android player API JSON [youtube] gdEuD9MMZd0: Downloading tv embedded player API JSON [youtube] gdEuD9MMZd0: Downloading web embedded client config [youtube] gdEuD9MMZd0: Downloading player d1783cbe [youtube] gdEuD9MMZd0: Downloading web embedded player API JSON ERROR: [youtube] gdEuD9MMZd0: Sign in to confirm your age. This video may be inappropriate for some users.

I have heard info about cookies and other stuff those are supposed to help to solve this case, but I never got this scheme working…

Dear author: can you PLEASE make new feature that will assure youtube that yt_dlp is 42 years old user - to get videos like mentioned earlier w/o problems ?

Thank You in advance !

Verbose log

>yt-dlp.exe -Fv https://youtu.be/gdEuD9MMZd0
[debug] Command-line config: ['-Fv', 'https://youtu.be/gdEuD9MMZd0']
[debug] Encodings: locale cp1251, fs utf-8, pref cp1251, out utf-8 (No ANSI), error utf-8 (No
 ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version 2022.05.18 [b14d523] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-7-6.1.7601-SP1
[debug] Checking exe version: ffprobe -bsfs
[debug] Checking exe version: ffmpeg -bsfs
[debug] exe versions: ffmpeg n5.0-48-gcffa10a0cb-20220401 (setts), ffprobe n5.0-48-gcffa10a0cb-20220401
[debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] [youtube] Extracting URL: https://youtu.be/gdEuD9MMZd0
[youtube] gdEuD9MMZd0: Downloading webpage
[youtube] gdEuD9MMZd0: Downloading android player API JSON
[youtube] gdEuD9MMZd0: Downloading tv embedded player API JSON
[youtube] gdEuD9MMZd0: Downloading web embedded client config
[youtube] gdEuD9MMZd0: Downloading player d1783cbe
[youtube] gdEuD9MMZd0: Downloading web embedded player API JSON
ERROR: [youtube] gdEuD9MMZd0: Sign in to confirm your age. This video may be inappropriate for some users.
  File "yt_dlp\extractor\common.py", line 642, in extract
  File "yt_dlp\extractor\youtube.py", line 3437, in _real_extract
  File "yt_dlp\extractor\common.py", line 1158, in raise_no_formats

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
coletdjnzcommented, May 26, 2022

Due to the age-restriction on this video it requires cookies/an account to view as you alluded to.

Try adding --cookies-from-browser browser e.g. --cookies-from-browser chrome

0reactions
nmr50commented, May 26, 2022

Yes, it worked with plugin that exported exactly youtube cookies to the files. Thanks for help !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Age-Restricted purchases do not play on the YouTube tv app
When I go to play the age-restricted video I get the normal message stating "Do you want to play this video? This video...
Read more >
youtube-dl not downloading any "age restricted" video
To download age restricted youtube videos with youtube-dl, you need to do the following: Sign in to Youtube on your Web Browser, ...
Read more >
Something Went Wrong. Sorry This Content Is Age Restricted ...
I've signed out and back in. I've tried everything I can to fix this. Can I get someone over at YT to please...
Read more >
Can't Watch a YouTube Video Due to YouTube Age Restriction?
Bottom Line. When you are watching a YouTube video, you may receive a warning message saying “This video may be inappropriate for some...
Read more >
Why am I still getting age restricted on the YouTube app via ...
This video might be inappropriate for sone users. Sign in to your primary account to confirm your age." ... They won't fix it....
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