-
Notifications
You must be signed in to change notification settings - Fork 13
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
Is there still no way to get past "Watch this video on YouTube. Playback on other websites has been disabled by the video owner" #54
Comments
Hm. Have you tried with cookies by any chance? This is very strange. I believe there is a way somehow to get this video. But this will require some more inspection as why won't youtube allow you to grab it. |
Just created a fresh
See also: |
First off I blame it on youtube-dl I made some progress on this. It is definitely possible to download this. However it seems the way youtube-dl work it won't work.
Or this
This is all I needed to get the data with the itags. So I tried adding the headers using --add-header. But that didn't work out. Then I tried supplying cookies. Which didn't work either. There may be a problem with the age gated fix. Proof it can work:
How did I do that?
Alternative to Step 1 - Ctrl + U (show source) and copy that. It should do the same but haven't tested it. Keep in mind that you cannot download any other youtube video then. This is just a POC (proof of concept). So someone may be able or want to fix that issue. I believe this video is a special case where it requires you to be logged in to view it and in addition it's age restricted. |
Hmm...
So I put the source into a html file. Then I cloned the source tree of |
I updated the instructions a bit. I did not notice that the quote mode actually remove Also you need to replace the REDACTED with actual values. Those can be found if you are using chrome and open developer tools. Easiest to would be to go to the tab Application and then on the left side Storage -> Cookies -> youtube. Then look out for the names and replace REDACTED with the values. |
Yeah, I had already replaced the Now the
Profit! But I think we can't expect users to do all this ;) [Edit] video comment:
Don't know what to expect next... ;) |
To come back to this issue again. I believe a fix would be to change the age restriction logic a bit. From what I remember it simply uses the embedded site then but not sure if cookies etc are used then or if they are even valid. It could be the case that mobile cookies differs from desktop cookies. |
This is also on my list to fix. The new age gate fix basically broke this. |
Hello guys, 20 days ago, on Sep 6, 2020 youtube-dl main repo had a commit related to age-gated content. So, in youtube_dl/extractor/youtube.py This way we can not by-pass geo restriction, but at least it works with --cookies parameter. |
@someziggyman Yeah as I said the new age gate fix broke the whole thing. |
@blackjack4494 Will this fix be featured in an upcoming release? |
@Aronian @someziggyman @nicolaasjan just finished the fix. |
Checklist
Description
Like the title says.
Example:
https://www.youtube.com/watch?v=7takIh1nK0s
Verbose output:
The text was updated successfully, but these errors were encountered: