News for hackers. Stuff that matters.
Re:YouTube-mp3 agrees to shut down by ocdtrekkie on Tuesday September 05, 2017 @10:29AM (#15175531)
Out of curiosity: Is youtube-dl something that can be prevented from working? Does a download from youtube-dl look different to a Google server than a legitimate view?

I guess it's kinda surprising to me that it still works after all this time, that there isn't some sort of authentication involved to prevent it.

Re:YouTube-mp3 agrees to shut down by blockoperation on Tuesday September 05, 2017 @12:28PM (#15176713)
It would be easy for them to fingerprint it and block it at a server level, given that it uses some hardcoded headers (which are probably sent in the wrong order versus the browser it's spoofing), doesn't fetch any of the images/stylesheets/etc on the page, and probably fetches scripts/manifests/etc in a predictable order that differs from YouTube's own scripts. Maybe they already do this (fingerprinting and logging, that is), but I haven't heard of anyone being banned for it, so it's probably not something to worry about.

It would also be easy for them to just break the extraction code. The old code used to break every time the signature function changed, and while the current code solves that problem, there are still so many things that they could do to break it, and yet they don't (the current code has only broken a few times that I can think of, and I don't think any of those were intentional on Google's part).

Technically it could violate these parts of the ToS, but they're all grey areas:

- access through anything than the site or 'approved' clients (but youtube-dl does use the site, so it could just be classed as another user agent)

- running automated services against them (running youtube-dl manually is probably fine, even for whole playlists or channels, but running a 'youtube-dl as a service' site like the one in this case is almost certainly not)

- downloading videos (but youtube-dl can also be used for streaming, despite the name)

I'm guessing that Google simply doesn't give a shit, as long as you're not using using it abusively (e.g. offering it as a service or using it to do mass-scraping).

Re:YouTube-mp3 agrees to shut down by dTal on Tuesday September 05, 2017 @11:08AM (#15175939)
In theory, no not really. Everything required for your browser to obtain the stream must be provided in the webpage, so it's always possible for something else to pretend to be a browser and get ahold of the stream.

In practice, they could combat the practicality by various methods, like embedding the ads in the video stream, throttling the stream to hurt the use-case of downloading vs watching (they already do this I think).

Re:YouTube-mp3 agrees to shut down by Mindwipe on Tuesday September 05, 2017 @11:04AM (#15175886)
YouTube has broken youtube-dl multiple times (a lot). It's a cat and mouse situation.

Ultimately YouTube could start properly DRM-ing all their streams. If you watch a film you've bought from Google Play via YouTube it is protected by Widevine DRM, and youtube-dl fails.

It seems like YouTube feel it's cheaper at the moment to try and frustrate downloading this way, but if they ever feel like it's a lost cause they'll just pull the Widevine lever.