Hacker News new | ask | show | jobs
by geor9e 765 days ago
Personally I just use a bookmarklet. Nothing to install, no website to visit. Just a local bookmark that shows the list of the video/audio file direct links.

https://github.com/minanagehsalalma/Youtube-Downloader-Bookm... (https://raw.githubusercontent.com/minanagehsalalma/Youtube-D...)

3 comments

Does it work? Looking at the code, the regex it uses to find the urls seems to be:

    document.documentElement.innerHTML.match(/https?:\/\/[^\s/$.?#].[^\s]*videoplayback(?:\?|%3F)[^'"]+/g)
Tried this on two videos and it returned null both times.
Hmm, I'm not the creator of it, but yes it's been working for me. I would have thought a regex match would be pretty universal. I'm using a chromium based browser if that matters. Here's what I see when I use it: https://i.imgur.com/7eS132D.png
I tried in FireFox and Chromium on Linux, and get no matches in both browsers.

On Windows in Chrome, it indeed works.

Tried it on 4 videos. Didn't work on any of them.
Doesn't work with DASH
Can't you still work around DASH by changing your user agent, claiming that you are running Safari? (It used to be the case, but I haven't been in the streaming industry for years now so it may be obsolete)
What do you mean work around DASH?

DASH is the correct way to do this. The combined formats are legacy.

I mean “work around the fact it doesn't work with DASH”

Also, MPEG-DASH is the typical bloated design-by-committee standard, that have twenty ways to do the same thing and that makes it very hard to implement fully. It's PDF or SVG all over again.

(I uses to work on an implementation of a DASH web player that had much better coverage of the standard that the reference implementation back in 2015, and I can tell you it was a PITA)

HLS, while a bit primitive in a few annoying way (inclusing the fact that it mandated, at the time, the use of MPEG-2 TS), is at least a pragmatic standard that is reasonably implementable. (Even though HLS.js being really good compared to the DASH alternative makes it less likely that you'd need to do it by yourself).