ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.18k stars 9.93k forks source link

Skip videos depending on license (CC vs youtube std license) #13924

Closed mnj closed 7 years ago

mnj commented 7 years ago

It would be cool, if its even technically possible, to be able to choose to skip downloading any videos that isn't Creative Commons licensed (=legal to download), travel a lot across borders, would be nice to be able to say, all videos downloaded was Creative Commons licensed and legal, it's a bit harder to defend videos with youtube's std. license to nosy border agents.

The main problem arises as some youtubers have a mix of CC and Youtube std. licensed videos mixed together on their feeds.

mnj commented 7 years ago

As a follow up, --match-filter FILTER, is supposed to be able to do it from what I can see, but if I dump the OPTIONS with --print-json, there is no license variable available.

mnj commented 7 years ago

Ok turns out I'm an idiot :(

--match-filter "license='Creative Commons Attribution license (reuse allowed)'"

Works as intended, even though it wasn't listed in --print-json

vigneshmj1997 commented 4 years ago

its not working for me The Shine - Jahzzar | Creative Common Music ¡Download for your video! does not pass filter license='Creative Commons Attribution license (reuse allowed)', skipping .. i am sure this is creative common video