-
Notifications
You must be signed in to change notification settings - Fork 10k
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.
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
[YouTube] Age verification issues - Can't download video. #28578
Comments
You are probably connecting from EU, right? |
Have you tried to download the video? |
there is nothing to be done on the youtube-dl side. |
|
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. |
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.
you didn't pass the cookies. |
Yes, i did not pass the |
@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. |
Try for yourself and report back. |
@remitamine Please check your email. |
* 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]
I have exactly the same problem. Now, I'm trying to redownload the playlist - because I've added videos since the last week - but youtube-dl complains about age-verification again. I've recreated a cookie file but it still complains. Furthermore, the video is already downloaded so why youtube-dl does not just ignore the video and download the other videos of the playlist ? |
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 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... |
Nevermind, age-restricted videos aren't working again as of recently... apparently YouTube just patched out something called the |
Possible fixes. Fixing requests to Switching to some internal Youtube API. |
Then why was youtube-dl working for me before, without needing to give Google my ID or pass any cookies? I think this problem goes deeper, the lab boys still seem to be working on it. |
It doesn't play age restricted videos again, look: $ youtube-dl --verbose https://www.youtube.com/watch?v=rR8s72aouNE |
Hi, I have the same issue with age verification, and I am not connected from EU my understanding according to this, is that I can chain
is my assumption about watching age-restriction videos without cookies or signing is still correct in the current version (I'm using please correct me so I can post more details |
@0x00Jeff you have to wait for the next youtube-dl release. Current version |
It looks like YouTube deprecated |
Another possible fix yt-dlp/yt-dlp#574 (comment) |
Tried that (I'm from the EU) with c0bc527 implemented. |
There is no fix for videos that can't be embedded. |
Doesn't work with |
Here we have our own age-check systems like the EU. Should I wait until the next release? |
Hmm... In the mean time, you could try with the fork yt-dlp. |
@fosam commented on 30 Mar 2021, 18:39 BST:
How does one pass the cookies from browser to youtube-dl ? |
It's in the Readme. :) |
yt-dlp comes with this param which will do the work for you, mostly:
|
YouTube has added more restrictions. Now you can't download age-restricted videos from the US even with the cookie. When viewing in the browser you have to click on two prompts every time you watch the video. |
Checklist
(i found one similar but my
--cookies
are not expired as stated in this issue [youtube] Unable to download age-gated videos. #28468)Verbose log
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.
--cookies
then i got the error below: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?
The text was updated successfully, but these errors were encountered: