4 ms·
I wonder if this could become the most lightweight way for yt-dlp to solve YouTube Javascript challenges. https://github.com/yt-dlp/yt-dlp/wiki/EJS https://git
by foresto 10mo ago
I wonder if this could become the most lightweight way for yt-dlp to solve YouTube Javascript challenges.
https://github.com/yt-dlp/yt-dlp/wiki/EJS https://github.com/yt-dlp/yt-dlp/wiki/EJS
(Note that Bellard's QuickJS is already a supported option.)
- silverwind 10mo agoLikely not, given that it only implements ES5.
- qbane 10mo agoNot likely: > It only supports a subset of Javascript close to ES5 [...] I have not read the code of the solver, but solving YouTube's JS challenge is so demanding that the team behind yt-dlp ditched their JS emulator written in Python.
- deleted 10mo ago[deleted]
- AndyKelley 10mo agoThat's a great idea, but if they did, then YouTube could retaliate by specifically using features that MicroQuickJS does not support.
- foresto 10mo agoOf course... The arms race is eternal. :)
- leptons 10mo agoThere's no reason it has to be lightweight, what it has to do is solve Youtube challenges without workarounds due to limited Javascript syntax.