I would like to add to the discussion that there are many perfectly legal uses of YoutubeDL:
* Downloading a video you uploaded and no longer have stored locally.
* Downloading a video to create a fair-use response video.
* Downloading video/music that is free commons (or some other non-restrictive license).
* (Gray) Downloading content to archive it.
* Downloading content you have already purchased and have in your possession.
* (Dark gray) Downloading content you have a paid subscription to view, but don't have reliable internet.
All of these anti-piracy measures need to answer one simple question - what stops somebody from just screen recording your material? At the point in which somebody can view your material on another device, you've lost a lot of control.
P.S. This clone seems legit:
`git clone https://gitea.eponym.info/Mirrors/youtube-dl.git`