-
Notifications
You must be signed in to change notification settings - Fork 370
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
[Question]How do I download age restricted video with youtube-dlc? youtube-dl is fine automatically #7
Comments
If it says so you need to provide your very own cookies. That is due the fact that some videos are only playable on youtube itself. There is a workaround in place to skip the need of cookies by using the embedded version but that is not working for on youtube only videos hence the need for cookies. |
The workaround doesn't seem to be working in yt-dlc right now. All age-restricted videos can't be downloaded with yt-dlc, not just "YouTube-only" ones. Meanwhile, youtube-dl downloads such videos just fine. |
Here is the commit that introduced this bug: b492464 |
this should be fixed in youtube-dlc |
Works here... But you have to use the
[Side-note] Better replace it with a less high-profile link. ;) |
No, you don't. I'll repeat: youtube-dl downloads age-restricted videos perfectly fine without cookies.txt. Only yt-dlc has this problem. |
Yes. I think now that it is indeed a bug. How would I use the cookies.txt option for that? Documentation is down, do I need a new link? |
Then just use youtube-dl for those. ;) |
Result:
Result:
|
I explained above, Klaus. |
Thanks. Hopefully this gets fixed |
@nbmrjuhneibkr you are partially right. To determine whether you can circumvent age gating the embedded version will be checked: So for instance try to download this video So at least I know I should check for both playability Status and unavailable messages. |
I don't think there's anything special about the example I provided. It behaves the same with every age-restricted video I could find (all of which could be embedded, and therefore could be downloaded by youtube-dl, but not by yt-dlc). |
Recently youtube-dl stopped working for me in regards to age-gate restricted videos. I am almost 100% sure that this has to do with google changing things - guess they |
You need a VPN to appear to come from outside the European Union, then it works. |
https://www.digitalmusicnews.com/2020/11/02/youtube-age-gate-verification-europe/ Although this is an article from November 2020, they seem to have finally rolled it out for everyone there. |
@rubyFeedback This repo has not had any updates for a while. You can try my fork yt-dlp where most age-gated content still works (not tested from EU) |
Just tested in Germany, it works. |
I got it to work with the following (cookies.txt by Lennon Hill) extension:- It adds an icon to the address bar, while on a youtube page click on the icon and export cookies.txt to the location you are running youtube-dl Then type:
♫♪.ılılıll|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅|llılılı.♫♪ |
It really works,thanks a lot!! |
No problem! In the mean time, note that this yt-dlc fork is no longer actively maintained. |
Can confirm that it does not. yt-dpl does though so all good there I guess. |
Thank you again!!! |
import subprocess this helped me for mp3 download [youtube] Extracting URL: https://www.youtube.com/watch?v=HLuHxEzO3sE Process finished with exit code 0 |
I used youtube-dl many years and it automatically made it possible to download age restricted videos.
But if I use youtube-dlc, it tells me:
ERROR: Video is age restricted and only playable on Youtube. Requires cookies!
How do I get the same automatically "cookie creation"?
Thanks in advance
The text was updated successfully, but these errors were encountered: