News for hackers. Stuff that matters.
Re:YouTube-dl has an interpreter for a subset of JavaScript ... by oynqr on Saturday September 10, 2022 @02:35PM (#32793304)
You need to run some obscured JS to get decent download speeds from Youtube. Something along the lines of PoW.
Re:YouTube-dl has an interpreter for a subset of JavaScript ... by db48x on Saturday September 10, 2022 @02:53PM (#32793493)
It’s not like proof of work at all. It’s just a challenge and response; youtube includes a random number in the webpage for each video, and expects to see a request parameter with a particular value calculated from that random number when you request the video. If you don’t do the arithmetic it throttles you to 50kb/s.

Since the calculation of the response is done in JS, and they occasionally change the formula, some download programs are moving towards running the JS rather than trying to keep up with the changes.

It’s really just bullshit to make people’s lives harder.

Re:YouTube-dl has an interpreter for a subset of JavaScript ... by xg15 on Saturday September 10, 2022 @03:40PM (#32793963)
Next step will probably be moving the calculation to webassembly or requiring the script to fetch the result via websocket or webrtc...
Re:YouTube-dl has an interpreter for a subset of JavaScript ... by mistrial9 on Saturday September 10, 2022 @03:43PM (#32793999)
.. pirate determination is a thing to behold, as is crazed-repetitive digital grabs.. Its not a fair or accurate characterization to dismiss it as "making people's lives harder" .. it is remarkable that the Debian distros now include ytdl; lets do what is reasonable to make it continue
Re:YouTube-dl has an interpreter for a subset of JavaScript ... by db48x on Saturday September 10, 2022 @03:52PM (#32794076)
You can’t exactly pirate a youtube video, since they’re all publicly available.
Re:YouTube-dl has an interpreter for a subset of JavaScript ... by MiguelX413 on Saturday September 10, 2022 @03:59PM (#32794128)
That's not really how piracy works. I say this as an advocate of it.
Re:YouTube-dl has an interpreter for a subset of JavaScript ... by dannyw on Saturday September 10, 2022 @11:46PM (#32796660)
YouTube PM: We need to stop youtube-dl.

Engineers: make half arsed attempt.