youtube-dl: [YouTube] Age verification issues - Can't download video.
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?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 12
- Comments: 32 (1 by maintainers)
Links to this issue
Commits related to this issue
- [youtube] imporve age-restricted video extraction(#28578) — committed to ytdl-org/youtube-dl by remitamine 3 years ago
- [bot] AutoMerging: merge all upstream's changes: * https://github.com/ytdl-org/youtube-dl: [vimeo] fix password protected review extraction(closes #27591) [youtube] imporve age-restricted video e... — committed to hellopony/youtube-dl by github-actions[bot] 3 years ago
- [youtube] imporve age-restricted video extraction(#28578) — committed to leshasmlesha/youtube-dl by remitamine 3 years ago
My cookies are not expired too.
Does that mean the contrubutors are unlikely to fix any issues that occure outside the US
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.
there is nothing to be done on the youtube-dl side. either use a proxy/VPN from a country outside the EU, or complete the age verification process.
There is no fix for videos that can’t be embedded.
@0x00Jeff you have to wait for the next youtube-dl release. Current version
2021.06.06
doesn’t work well with age restricted videos.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.
Hmm… You may have to wait a long time. See this: https://github.com/ytdl-org/youtube-dl/issues/29753
In the mean time, you could try with the fork yt-dlp. It can download IFjle80na1A just fine and without providing cookies.
Another possible fix https://github.com/yt-dlp/yt-dlp/issues/574#issuecomment-887171136
Something strangely fortuitous happens to me (I’m using the Youtube-DLG interface if that matters). When daddy Google and mummy EU ask for my papers on a video like this and I try youtube-dl, I get the typical
Sign in to confirm your age
error.However, if I wait a few minutes and try to download the same video with youtube-dl again, it just werks™. With no extra commands, no strange methods…