Fix for "Sign in to confirm your age. This video may be inappropriate for some users" ?
See original GitHub issueChecklist
- 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
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:
- Created a year ago
- Comments:9 (1 by maintainers)
Top GitHub Comments
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
Yes, it worked with plugin that exported exactly youtube cookies to the files. Thanks for help !