News for hackers. Stuff that matters.
Re:YouTube-dl has received a DMCA takedown from RIAA by Kim_Bruning on Friday October 23, 2020 @04:30PM (#24873742)
Lesson learned: always use Creative Commons licensed data to demo your multimedia tools. Else people get the wrong idea.

Some examples for youtube-dl might be:

* https://www.youtube.com/watch?v=aqz-KE-bpKQ Big buck bunny

* https://www.youtube.com/watch?v=eRsGyueVLvQ Sintel

* https://www.youtube.com/watch?v=WhWc3b3KhnY Spring

In fact, youtube actually allows you to filter by CC, so there's never a reason not to!

Re:YouTube-dl has received a DMCA takedown from RIAA by grishka on Friday October 23, 2020 @05:55PM (#24874684)
In the case of youtube-dl, they couldn't do that. At least VEVO videos have an additional layer of "protection" — the direct links to video files require a signature of some sort IIRC. Downloading a non-DRM-ed video is as easy as making a request to https://www.youtube.com/get_video_info?video_id=aqz-KE-bpKQ and then following a link to the format you need, but with those music videos, that won't work. So the test cases were a necessity.
Re:YouTube-dl has received a DMCA takedown from RIAA by Kim_Bruning on Friday October 23, 2020 @07:06PM (#24875323)
Hmm, are you sure that link is correct? In firefox and chromium that gets me about 122K of not-very-easy-to-parse text.
Re:YouTube-dl has received a DMCA takedown from RIAA by grishka on Friday October 23, 2020 @08:21PM (#24875792)
Yes, it's correct and it should return that. The top-level serialization format is simply a URL query string aka application/x-www-form-urlencoded. No idea why but probably historical reasons.
Re:YouTube-dl has received a DMCA takedown from RIAA by getcrunk on Friday October 23, 2020 @10:09PM (#24876339)
So what do I do next?
Re:YouTube-dl has received a DMCA takedown from RIAA by jewel on Friday October 23, 2020 @10:58PM (#24876601)
In ruby:

  require 'cgi'
  require 'json'
  require 'net/http'
  res = Net::HTTP.get URI 'https://www.youtube.com/get_video_info?video_id=aqz-KE-bpKQ'
  vars = CGI.parse res
  json = JSON.parse vars["player_response"].first
  pp json["streamingData"]["formats"]
Re:YouTube-dl has received a DMCA takedown from RIAA by nullc on Friday October 23, 2020 @06:05PM (#24874790)
Hi Kim!

They couldn't have done this. The 'infringing' links were in the test suite and were specifically tests for content from particular sources which had special links which required different techniques to download them.

The test would not have been accomplished if they were pointed at links which didn't have the behaviour that was being tested.

Re:YouTube-dl has received a DMCA takedown from RIAA by gforz on Friday October 23, 2020 @06:32PM (#24875024)
Curious to know if it was not possible for YouTube-dl to create content which was ‘similar’ to the infringing ones & upload it on YouTube for their test cases?
Re:YouTube-dl has received a DMCA takedown from RIAA by nullc on Friday October 23, 2020 @07:14PM (#24875387)
AFAIK the features they're testing are only available to specific partners. I can't be sure, but it isn't obvious how they could go about doing this.
Re:YouTube-dl has received a DMCA takedown from RIAA by p2detar on Friday October 23, 2020 @07:11PM (#24875370)
Or they could have had the YouTube links in another file, not part of the repo, and only download and parse it when tests are run.
Re:YouTube-dl has received a DMCA takedown from RIAA by kc-rush2049 on Friday October 23, 2020 @08:17PM (#24875772)
Best thing would be for them to just upload their own test videos with the various formats and test against those.
Re:YouTube-dl has received a DMCA takedown from RIAA by foerbert on Friday October 23, 2020 @09:01PM (#24876016)
Most of this comment chain has been about why they couldn't do that. They were testing against special features that are only available to select partners.
Re:YouTube-dl has received a DMCA takedown from RIAA by MeanSpirit on Saturday October 24, 2020 @10:48AM (#24879525)
One solution would be to load those links from environment variables, similar to how it's done with API access keys and other sensitive data. This would mildly inconvenience the devs by having to copy the links to those types of content by hand and set the vars before running the tests, but none of the "infringing" links would be present in the repo itself.
Re:YouTube-dl has received a DMCA takedown from RIAA by Kim_Bruning on Friday October 23, 2020 @06:59PM (#24875255)
Hi Nullc, long time no see! :-) And shoot, that is annoying.

It makes for really bad optics though. Gforz's suggestion to upload test video with similar parameters is -in 20/20 hindsight- probably the better plan. Definitely better than giving bad ideas to copyright lawyers.

Re:YouTube-dl has received a DMCA takedown from RIAA by JdeBP on Saturday October 24, 2020 @06:51AM (#24878338)
Re:YouTube-dl has received a DMCA takedown from RIAA by throwawaylolx on Friday October 23, 2020 @04:47PM (#24873954)
I think to take your lessons from the pretexts is like judging a war by its casus belli.
Re:YouTube-dl has received a DMCA takedown from RIAA by defen on Friday October 23, 2020 @05:09PM (#24874204)
The smart thing would have been to always filter by CC. And then anyone who can type # could just modify their source code a bit to adjust the filters.