I tried downloading a particular YouTube video using youtube-dl
(in terminal) and got the following display:
[youtube] 8_Ik8elX96w: Downloading webpage
[youtube] 8_Ik8elX96w: Downloading embed webpage
[youtube] 8_Ik8elX96w: Refetching age-gated info webpage
ERROR: This video may be inappropriate for some users.
The URL for the video is: https://www.youtube.com/watch?v=8_Ik8elX96w
I've been told that this is to do with YouTube age restrictions and that I need youtube-dl
to log in to my YouTube account to bypass the restriction; and this requires can be enabled by supplying the required cookie set for YouTube log-in in the command line. (youtube-dl
does not access YouTube via my browser, so manually logging in through my browser does not bypass the restriction for youtube-dl
.)
If this is the correct way to bypass the restriction, please tell me how to find the cookie path to type into the command line and the procedure for entering it there. I am using Firefox; apparently the method of finding the required cookie text is different for each browser.
youtube-dl -h
for more help.