https://github.com/ytdl-org/youtube-dl/issues/28578 Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Project management - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] [search-key] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} ytdl-org / youtube-dl * Notifications * Star 95.7k * Fork 5.1k * Code * Issues 3.4k * Pull requests 750 * Actions * Projects 2 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights New issue Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Pick a username [ ] Email Address [ ] Password [ ] [ ] Sign up for GitHub By clicking "Sign up for GitHub", you agree to our terms of service and privacy statement. We'll occasionally send you account related emails. Already on GitHub? Sign in to your account Jump to bottom [YouTube] Age verification issues - Can't download video. #28578 Closed fosam opened this issue Mar 28, 2021 * 12 comments Closed [YouTube] Age verification issues - Can't download video. #28578 fosam opened this issue Mar 28, 2021 * 12 comments Labels invalid Comments @fosam Copy link @fosam fosam commented Mar 28, 2021 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 The text was updated successfully, but these errors were encountered: 2 3 @Suika Copy link @Suika Suika commented 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. 1 @fosam Copy link Author @fosam fosam commented Mar 29, 2021 Have you tried to download the video? @Rudbekia Copy link @Rudbekia Rudbekia commented 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. 1 @remitamine Copy link Collaborator @remitamine remitamine commented Mar 30, 2021 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. @remitamine remitamine closed this Mar 30, 2021 @remitamine remitamine added the invalid label Mar 30, 2021 @fosam Copy link Author @fosam fosam commented 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 5 @fosam Copy link Author @fosam fosam commented Mar 30, 2021 @remitamine * I just connected to a US server using VPN, and this is the report i got: 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. Note: i tried other videos and they worked, keep in mind that this is not an age-verification question as the US is not affected by the AVMSD legislation as in the EU. @remitamine Copy link Collaborator @remitamine remitamine commented Mar 30, 2021 Does that mean the contrubutors are unlikely to fix any issues that occure outside the US it's not about the issue not related to the US, it's that youtube won't allow access to the video when you're accessing a non-embedable age-restricted video from the EU with passing the new age verification requirement, youtube-dl can't simply bypass this condition. I just connected to a US server using VPN, and this is the report i got: you didn't pass the cookies. @fosam Copy link Author @fosam fosam commented Mar 30, 2021 Does that mean the contrubutors are unlikely to fix any issues that occure outside the US it's not about the issue not related to the US, it's that youtube won't allow access to the video when you're accessing a non-embedable age-restricted video from the EU with passing the new age verification requirement, youtube-dl can't simply bypass this condition. I just connected to a US server using VPN, and this is the report i got: you didn't pass the cookies. Yes, i did not pass the --cookies not sure why that is required as i did download many other age-gated videos without it? Can somebody try to explain why that is? @Rudbekia Copy link @Rudbekia Rudbekia commented Mar 30, 2021 @remitamine Then in the EU or countries using new age verification, Does that mean there is no way to download videos without a VPN connection? Even though I use the cookie of the ID whose age has been verified. @remitamine Copy link Collaborator @remitamine remitamine commented Mar 30, 2021 @remitamine Then in the EU or countries using new age verification, Does that mean there is no way to download videos without a VPN connection? Even though I use the cookie of the ID whose age has been verified. no, if you can't download an age-restricted video using non-expired cookies for an account that has the ability to watch the video in the browser then this would be considered an issue, however, there won't much that can be done unless a developer can reproduce the same problem. @fosam Copy link Author @fosam fosam commented Mar 30, 2021 @Rudbekia * If you connect from the EU and have not verified, theres is now way without the VPN. * If you have already verified your account you can just pass the cookies and download. Try for yourself and report back. @Rudbekia Copy link @Rudbekia Rudbekia commented Mar 30, 2021 @remitamine Please check your email. remitamine added a commit that referenced this issue Mar 30, 2021 @remitamine [youtube] imporve age-restricted video extraction(#28578) Loading status checks... 28bab77 github-actions bot added a commit to hellopony/youtube-dl that referenced this issue Mar 31, 2021 @github-actions [bot] AutoMerging: merge all upstream's changes: ... ed59262 * https://github.com/ytdl-org/youtube-dl: [vimeo] fix password protected review extraction(closes ytdl-org#27591) [youtube] imporve age-restricted video extraction(ytdl-org#28578) release 2021.03.31 [ChangeLog] Actualize [ci skip] leshasmlesha added a commit to leshasmlesha/youtube-dl that referenced this issue Apr 3, 2021 @remitamine @leshasmlesha [youtube] imporve age-restricted video extraction(ytdl-org#28578) f0277d2 @makeworld-the-better-one makeworld-the-better-one mentioned this issue Jun 1, 2021 Doesn't work on this video zerodytrash/ Simple-YouTube-Age-Restriction-Bypass#15 Open @Symbian9 Symbian9 mentioned this issue Jun 1, 2021 All types of age-gated videos don't get loaded TeamNewPipe/NewPipe# 6403 Open 4 of 4 tasks complete Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Assignees No one assigned Labels invalid Projects None yet Milestone No milestone Linked pull requests Successfully merging a pull request may close this issue. None yet 4 participants @Suika @remitamine @Rudbekia @fosam * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.