YePpHa / YouTubeCenter

YouTube Center is a userscript designed to expand the functionality of YouTube. It includes the ability to download the video you're watching, auto selecting your preferred video quality and much more.
MIT License
2.89k stars 520 forks source link

Doesn’t work for age-restricted videos #1062

Open Synetech opened 10 years ago

Synetech commented 10 years ago

It seems that this (and other YouTube downloaders like keepvid.com) don’t work for age-restricted videos like this one. You must be signed in to access such videos, and apparently the age-check comes after the script runs.

YePpHa commented 10 years ago

YouTube Center will not be able to retrieve any detailed video information when the restriction is shown and therefore it can't get the information needed to download the video. I would recommend you to just sign in and make sure that your account is set to an age higher or equal than 18 years old.

Synetech commented 9 years ago

I am signed in and can watch the video online, but the download button is empty. It looks like the age-check happens after YouTube Center creates the download button.

Would it be possible to detect age-restricted videos and add a delay before creating the download button? That way, YouTube does the age-check and displays the normal page, then YouTube Center can create the download button.

I don’t know if it is sufficient for the download button, but I wrote a user-script which adds displays the length of the video next to the title, and since it works for age-restricted videos, it is possible to get some information about age-restricted videos using gdata.youtube.com/feeds/api/videos. (Probably not; I just checked one and I don’t see anything that YTC would use to get stream information.)

YePpHa commented 9 years ago

@Synetech I am not getting any age-check at all with my account, but I do not think that this is the issue at hand. I checked the video stream type and it seems like YouTube is using the rtmpe protocol for this video. YouTube Center and many other YouTube downloaders don't support that and there is a good reason for that. The rtmpe protocol is made by Adobe to deliver a secure video stream to the flash player. They made it so that it would not be possible for the browser to directly download this type of stream.

It is still possible to download the stream but it's a lot harder to do than normally. If you really want to download the video I would recommend you to take a look at this thread as it contains information on how to download rtmpe streams from YouTube. Though it will most likely not work as I just tried it and it seems like the current version of rtmpdump does not work with the server YouTube is using. I can also recommend you to take a look at youtube-dl and their website.

qQQp commented 9 years ago

I'm using this script to bypass age restricted videos. https://greasyfork.org/en/scripts/3848-bypass-youtube-age-verification-improved

YTC doesn't work with this script. But they did work together before. I was able to bypass restriction and download videos with YTC. Now I can't. But, extensions like "flashgot" and "video downloadhelper" still work and I'm using them to download restricted videos.

It would be nice YTC to support bypass scripts.

YePpHa commented 9 years ago

@qQQp I just looked at their code and it seems like it will be quite a challenge to make YTC compatible with their userscript. However I will try to see if it's possible.

Synetech commented 9 years ago

Thank you very much. No rush, most videos aren’t restricted, so you can take your time. Either way, you’ve made something great. 👍