java-youtube-downloader icon indicating copy to clipboard operation
java-youtube-downloader copied to clipboard

Parse age-restricted videos

Open ronanPoinsignon opened this issue 5 years ago • 2 comments

Hi,

It seems that we cannot download the video when we have to accept the inappropriate content of the video. Idk if i'm understandable so i give you some links to understand the problem : https://www.youtube.com/watch?v=Nkwhj96kVyU https://www.youtube.com/watch?v=QQhj1ckZwBQ

For these videos, the link goes from https://www.youtube.com/watch?v=XXX to https://www.youtube.com/watch?v=XXX&has_verified=1 .

ytbAccept

ronanPoinsignon avatar Jul 30 '20 19:07 ronanPoinsignon

These videos are age-restricted, so you must be logged in to view the content.

20200731_001312.jpg

xibr avatar Jul 30 '20 20:07 xibr

@ronanPoinsignon it is possible to implement login functionality to download age restricted videos, like it is done here: https://github.com/ytdl-org/youtube-dl/blob/a4ed50bb84658b7e77cbb37597c36fa62a9acd4b/youtube_dl/extractor/youtube.py#L89 But it requires a lot of research work to undestand how google login works, for now I don't have time to dive deep into this issue, but you may try yourself and submit pull request. Thank you

sealedtx avatar Jul 31 '20 10:07 sealedtx