If memory serves this was one of the things that bit youtube-dl in the ass with github: the documentation described/demonstrated using it to violate copyright.
Not in their documentation. Two or three of the many videos used in their unit tests were music videos, and wouldn't have been used if youtube didn't serve them differently.