You are not logged in.

#1 2025-11-12 14:51:01

laichiaheng
Member
Registered: 2017-02-12
Posts: 297

yt-dlp needs yt-dlp-ejs to work properly on YouTube.

The latest yt-dlp needs yt-dlp-ejs to work properly, otherwise it can't read all the format on YouTube.

Offline

#2 2025-11-12 15:30:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,085

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

https://archlinux.org/packages/extra/any/yt-dlp/ has deno as hard dependency (sigh) so this should™ absolutely not be required also please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
What formats do and don't you get for what specific yt-dlp invocation of what exact yt-dlp version?

x-ref, https://bbs.archlinux.org/viewtopic.php?id=309699

Offline

#3 2025-11-13 02:46:06

mozlima
Member
Registered: 2019-09-22
Posts: 9

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

It still needs to download yt-dlp-ejs using:

--remote-components COMPONENT   Remote components to allow yt-dlp to fetch
                                when required. This option is currently not
                                needed if you are using an official
                                executable or have the requisite version of
                                the yt-dlp-ejs package installed. You can
                                use this option multiple times to allow
                                multiple components. Supported values:
                                ejs:npm (external JavaScript components from
                                npm), ejs:github (external JavaScript
                                components from yt-dlp-ejs GitHub). By
                                default, no remote components are allowed  

Offline

#4 2025-11-13 03:34:52

killertofus
Member
Registered: 2025-02-10
Posts: 182

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

yt-dlp-ejs was just added as a opt dep which requires deno


I Have Linux Perl Can i Download Gnome???

Offline

#5 2025-11-13 14:33:11

TheCaRp
Member
Registered: 2024-05-02
Posts: 5

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

yt-dlp-ejs is also in the AUR. Isn't this a conflict? The same package in Extra and the AUR?

Last edited by TheCaRp (2025-11-13 14:34:09)

Offline

#6 2025-11-13 14:45:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,085

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

Yes, but this conflict was introduced by the addition to the repo.
AUR package still needs to go, did you file a request?

Offline

#7 2025-11-13 15:00:10

TheCaRp
Member
Registered: 2024-05-02
Posts: 5

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

I did not.

Offline

#8 2025-11-13 15:03:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,085

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

Do you want to? smile

Offline

#9 2025-11-13 15:11:59

TheCaRp
Member
Registered: 2024-05-02
Posts: 5

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

Request for deletion submitted.

Offline

#10 2025-11-13 15:31:44

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,085

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

Thank you.

Offline

#11 2025-11-14 00:31:33

teckk
Member
Registered: 2013-02-21
Posts: 579

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

Yup, that works just fine. I don't update as often as some do.
yt-dlp-2025.11.12-2-any.pkg.tar.zst

agent="Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_2 like Mac OS X) \
AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/131.0.6778.154 Mobile/15E148 Safari/604.1"

yt-dlp --user-agent "$agent" -F https://m.youtube.com/watch?v=saVjKQLXXQo
...
[youtube] saVjKQLXXQo: Downloading android sdkless player API JSON
[youtube] [jsc:deno] Solving JS challenges using deno
[info] Available formats for saVjKQLXXQo:
...

I like it. That should make yt-dlp work. Until google changes something again.

Offline

#12 2025-11-21 19:16:55

brutalfags
Member
Registered: 2017-07-07
Posts: 1

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

Hi, I'm having issues finding the package yt-dlp-ejs-0.3.1-1, both on the extra repo and the AUR.
As an example, this mirror returns 404 Not Found, even though the package is listed if I search through the directory.

Offline

#13 2025-11-21 19:39:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,085

Offline

#14 2025-11-21 20:50:38

teckk
Member
Registered: 2013-02-21
Posts: 579

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

You don't have to have that installed for youtube though. For youtube deno will download
~/.cache/yt-dlp/challenge-solver/lib.json

And, that works.

Offline

#15 2025-11-21 21:20:36

teckk
Member
Registered: 2013-02-21
Posts: 579

Re: yt-dlp needs yt-dlp-ejs to work properly on YouTube.

I'm not up to date. I last updated Oct 12 2025.

I then installed deno with pacman -S on oct 23 to play with it.

Later, I got yt-dlp-2025.11.12-2-any.pkg.tar.zst package and installed it manually with pacman -U on Nov 13. Yes I know, that's a partial update.

And yt-dlp works fine with deno. I don't even have yt-dlp-ejs in my pacman database yet.

So, yt-dlp is not too picky about deno version it looks like.

I built yt-dlp-ejs from source to look at it and play with it.

It will fetch during the build, 198 json files to use.

If this info is of value to anyone.

Last edited by teckk (2025-11-21 21:21:56)

Offline

Board footer

Powered by FluxBB