Ubuntu – Why is youtube-dl blocking me from downloading YouTube videos which are supposedly “innappropriate for some users”

google-chromevideoyoutube

I recently attempted to download a YouTube video using youtube-dl (i.e. the terminal version) and the following was displayed in the terminal window:

[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.

This is the url of the YouTube video I tried to download:

https://www.youtube.com/watch?v=8_Ik8elX96w

There is nothing inappropriate about the video, and it is certainly not inappropriate for this user. I'm guessing it has been flagged by the SJWs at YouTube/Google as racist (though there is no racist content at all) and Ubuntu is detecting these flags and enforcing them on Ubuntu users. However, the video has obviously not been actually blocked or deleted by YouTube. I'd like to know if there is a work-around for whatever is causing this.

Best Answer

The policy issue is with YouTube, rather than with Ubuntu or the YouTube downloader. To answer the technical part of the question:

youtube-dl -u 'youtube-username' -p 'youtube-password' https://www.youtube.com/watch?v=hicC53AhZ6Y

Ensure you are running the latest version.

Not ideal but it works.