Bug 2405578 - yt-dlp soon to require javascript runtime and yt-dlp-ejs to run Javascript challenges (JSC)
Summary: yt-dlp soon to require javascript runtime and yt-dlp-ejs to run Javascript ch...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: yt-dlp
Version: rawhide
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Maxwell G
QA Contact:
URL:
Whiteboard:
: 2440553 2476441 2480429 (view as bug list)
Depends On: 2486100
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-22 01:26 UTC by R Haley
Modified: 2026-11-27 20:46 UTC (History)
18 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-10-09 00:16:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description R Haley 2025-10-22 01:26:48 UTC
Description of problem:

In order to adapt to recent YouTube changes that are causing (most) downloads to fail with 403 errors, yt-dlp is adding a dependency on the Deno javascript interpreter. This is not currently packaged in Fedora and its suggested install method is a curl | sh, which... eww.

See:

https://github.com/yt-dlp/yt-dlp/issues/14404
https://github.com/yt-dlp/yt-dlp/issues/14680#issuecomment-3425624789

Comment 1 nucleo 2025-11-13 14:11:20 UTC
Found in Copr
https://copr.fedorainfracloud.org/coprs/samoht0/staticbuilds/

Comment 2 nucleo 2025-11-13 14:54:45 UTC
yt-dlp-ejs can be built with packaged nodejs-npm and yt-dlp can run with --js-runtimes node

Comment 3 nucleo 2025-11-13 20:28:55 UTC
yt-dlp-ejs can be built without installing any javascript interpreter and with included prebuilt yt.solver.lib.min.js yt.solver.core.min.js

https://copr.fedorainfracloud.org/coprs/nucleo/yt-dlp-ejs/build/9796045/

Comment 4 Maxwell G 2025-11-17 14:16:30 UTC
> This is not currently packaged in Fedora and its suggested install method is a curl | sh, which... eww.

It is also possible to download the binaries built in Github Actions from the project's releases or to use cargo binstall or to build from source (https://github.com/denoland/deno/blob/main/.github/CONTRIBUTING.md#building-from-source). Deno will likely not be easy to package properly but folks familiar with rust packaging are welcome to try.

As for yt-dlp-ejs, if someone wants to package it in a Guidelines-compliant way (i.e., not just copying pre-built Javascript blobs, unless that's _really_ the only way), I can probably co-maintain the package. If we do have python3-yt-dlp-ejs packaged, I'd be willing to consider https://src.fedoraproject.org/rpms/yt-dlp/pull-request/30 which enables yt-dlp to use node by default. However, I'm not sure if that's a decision we want to make for users, since the whole point of defaulting to deno and requiring manual opt-in for other runtimes is to avoid running the javascript challenges without sandboxing.

Comment 5 solomoncyj 2025-11-29 09:23:16 UTC
We can pull a page out of waydroids page as they
do not refill their can urls and users have to
Copy them when setting up waydroid. Can can chose
not to set end up and just pull in does (node)
and leave the configuration to the end users,
But unlike waydroid, the need to look up documentation 
is less subtle as instead of presenting a blank form
whose answers can be easily found, yt-dlp starts without 
errors and blows up when end isn’t configured and a yt vid
is downloaded, and troubleshooting may be a bit harder due to the
Need to hunt down documentation and choosing between 3 possible
Options (ejs:npm, ejs:GitHub or pip install yt-dip-ejs with
The first 1 only working on a subset of js runtimes, and the need
to actively check for updates if pip install is used). This may 
Confuse new users or people who aren’t tech literate, and official
docs recommend using deno, which maybe counterintuitive to node
Since official docs want a deno elf in the same folder/added to PATH
Where else node can be globally installed via dnf and allows automatic 
updates

Comment 6 solomoncyj 2025-11-29 09:24:16 UTC
*waydroid do not prefill their urls

Comment 7 alexisguerreroabg 2026-01-29 18:42:16 UTC Comment hidden (obsolete)
Comment 8 Maxwell G 2026-02-18 22:26:53 UTC
*** Bug 2440553 has been marked as a duplicate of this bug. ***

Comment 9 Dominik 'Rathann' Mierzejewski 2026-02-19 11:56:33 UTC
IMO things should "just work" without user having to install some additional software from outside Fedora.

From upstream docs, I understand yt-dlp can use NodeJS as the JS engine, so why not try using the packaged nodejs?

In parallel, I'm working on enabling the "impersonation" feature (https://github.com/yt-dlp/yt-dlp#impersonation).

I have curl_cffi packaged locally, but curl-impersonate is a bit more difficult due to it being a patched curl fork.

Comment 10 Maxwell G 2026-05-12 13:35:30 UTC
*** Bug 2476441 has been marked as a duplicate of this bug. ***

Comment 11 Lena Wildervanck 2026-06-02 01:54:18 UTC
*** Bug 2480429 has been marked as a duplicate of this bug. ***

Comment 12 Maxwell G 2026-06-04 21:23:26 UTC
Some work is in https://git.sr.ht/~gotmax23/rpm-python-yt-dlp-ejs. I'll work on a Copr and package review for this.

Comment 13 Dominik 'Rathann' Mierzejewski 2026-06-05 11:35:12 UTC
(In reply to Dominik 'Rathann' Mierzejewski from comment #9)
> From upstream docs, I understand yt-dlp can use NodeJS as the JS engine, so
> why not try using the packaged nodejs?

FWIW, this actually works (--js-runtimes node).

Comment 14 Maxwell G 2026-06-05 12:38:51 UTC
Right, but we can't make that the default in Fedora unless we package yt-dlp-ejs because otherwise it downloads pre-built Javascript blobs.

Comment 15 Maxwell G 2026-06-07 17:30:24 UTC
Review request posted: https://bugzilla.redhat.com/show_bug.cgi?id=2486100

Comment 17 Wind 2026-10-08 12:04:16 UTC
What is the current status of getting Fedora to package `yt-dlp` and the **required** dependencies, like `yt-dlp-ejs` and the recommended `deno`?

If the `yt-dlp` dependencies are not planned to get included with the proper Fedora repos any time soon, **what is the accepted and recommended method to install and update the year-long required dependencies?**

We are very soon going to reach the end-of-life (EOL) date for Fedora 43 (December 9, 2026).  
https://fedorapeople.org/groups/schedule/f-43/f-43-key-tasks.html

As far as I can tell, Fedora 43 repos are the last ones to contain the package versions of yt-dlp, before the package change requiring the javascript challenge solver.

It would be very much preferred if the updates and dependant packages came from **official** Fedora repos.

Like the original reporter here, I am not pleased to use the `deno` method of `curl | sh`.

I know there exists the "Terra" repo.  And that one appears to contains both `yt-dlp-ejs` and the recommend `deno` packages.

https://fedora.pkgs.org/43/terra/python3-yt-dlp-ejs-0:0.8.0-1.fc43.noarch.rpm.html
https://fedora.pkgs.org/43/terra/deno-0:2.9.5-1.fc43.x86_64.rpm.html

If the `yt-dlp` dependencies are not planned to get included with the official Fedora repos any time soon, **what is the accepted and recommended method to install and update the year-long required dependencies?**

P.S.  Thank you @Maxwell for maintaining `yt-dlp` all these years, (as well as the other maintainers).  It is definitely appreciated.

Comment 18 Fedora Update System 2026-10-09 00:12:00 UTC
FEDORA-2026-336a30148d (yt-dlp-2026.08.19-2.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-336a30148d

Comment 19 Fedora Update System 2026-10-09 00:16:13 UTC
FEDORA-2026-336a30148d (yt-dlp-2026.08.19-2.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 20 Fedora Update System 2026-10-09 01:23:29 UTC
FEDORA-2026-a0d06f1c18 (python-yt-dlp-ejs-0.8.0^20260524.d60b824-2.fc45 and yt-dlp-2026.08.19-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-a0d06f1c18

Comment 21 Fedora Update System 2026-10-09 01:23:46 UTC
FEDORA-2026-0e7b79f5aa (python-yt-dlp-ejs-0.8.0^20260524.d60b824-2.fc44 and yt-dlp-2026.08.19-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-0e7b79f5aa

Comment 22 Fedora Update System 2026-10-10 01:58:14 UTC
FEDORA-2026-0e7b79f5aa has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-0e7b79f5aa`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-0e7b79f5aa

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 23 Fedora Update System 2026-10-10 02:22:27 UTC
FEDORA-2026-a0d06f1c18 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-a0d06f1c18`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-a0d06f1c18

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 24 Maxwell G 2026-10-29 00:40:42 UTC
This is currently broken, as was pointed out by @nucelo in the F44 Bodhi update (https://bodhi.fedoraproject.org/updates/FEDORA-2026-0e7b79f5aa#comment-4807078).

WARNING: [youtube] [jsc:node] Hash mismatch on challenge solver lib script (source: python package, variant: ScriptVariant.MINIFIED, hash: 91453929a13588a5d9572549088b482a5e43f673bd21c4e8ce06eefca23a3802247797ac80fbff5bb0d1b20054e7976bec337aa9a3620a95d115b3773f0e0698)!

I have a patch to disable the hash checking in this case (https://paste.sr.ht/~gotmax23/783fa985893ffb5218fdc7cf0e4b7c3c8e9208c0) so that yt-dlp will use the new Fedora python3-yt-dlp-ejs package, which is the cause of the first error, but it turns out the package is still broken due to an upstream bug. After applying the patch, there is a new error. The current python3-yt-dlp-ejs RPM is built from an upstream git snapshot so we could take the changes to use esbuild to build the javascript sources, instead of rollup which is not packaged for Fedora, but it turns out https://github.com/yt-dlp/ejs/commit/2231f1fd6e13aa88ee9b3af7a3193a81e07e6a27 (contains the switch to esbuild) produces a broken build that throws errors:

WARNING: [youtube] [jsc] Error solving n challenge request using "node" provider: Error running node process (returncode: 1): node:internal/modules/cjs/loader:1433
  throw err;
  ^

Error: Cannot find module 'meriyah'
Require stack:
- /home/gotmax/[stdin]
    at Module._resolveFilename (node:internal/modules/cjs/loader:1430:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1040:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1045:22)
    at Module._load (node:internal/modules/cjs/loader:1216:25)
    at wrapModuleLoad (node:internal/modules/cjs/loader:254:19)
    at Module.require (node:internal/modules/cjs/loader:1527:12)
    at require (node:internal/modules/helpers:147:16)
    at [stdin]:64:712
    at [stdin]:135:116
    at runScriptInThisContext (node:internal/vm:209:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/gotmax/[stdin]' ]
}.


So this needs more digging. We can try to fix the esbuild configuration on upstream's development branch or go back to the release version (v0.8.0) and figure out how to build with rollup in Fedora. https://copr.fedorainfracloud.org/coprs/gotmax23/yt-dlp/build/11198943/ was my attempt at the latter, but it turns out rollup includes some pre-built binaries when using the vendored npm packages which is not allowed.

Comment 25 Wind 2026-11-27 11:35:08 UTC
(In reply to Wind from comment #17)
> ...
> **what is the accepted and recommended method to
> install and update the year-long required dependencies?**
> 
> We are very soon going to reach the end-of-life (EOL) date for Fedora 43
> (December 9, 2026).  
> https://fedorapeople.org/groups/schedule/f-43/f-43-key-tasks.html

I can see that you are trying to make the new `ejs` package work.  But there are some issues to work out.

Only Fedora 43 contains the working `yt-dlp` package (which does not require `ejs` and a JS runtime).  And in 11 days, Fedora 43 *will* be unsupported.  Upgrading to Fedora 44+ meaning losing the working non-JS-runtime version of `yt-dlp`.

Please advise Maxwell G; what is the accepted and recommended method to install and update the required dependencies?

Is using the Terra repo acceptable and recommended for installing the required `ejs` and JS runtime packages?

Comment 26 Maxwell G 2026-11-27 20:45:23 UTC
python3-yt-dlp-ejs was never pushed to Fedora 44 or 45 and is not a hard requirement of the yt-dlp package. None of the Fedora versions' yt-dlp packages currently pull in a JS runtime. Tera is a third-party repository with different maintainers, so if you have questions about Tera packages, you'd have to contact their maintainers.

Fedora packages are maintained by volunteers, so adding NEEDINFO does not move things along any faster. Please avoid doing that. If you can contribute a Packaging Guidelines–compliant solution, that would be welcome, or using an alternative source for the ejs scripts (such as --remote-components ejs:github --js-runtimes node) is still a valid workaround until yt-dlp-ejs is properly packaged in Fedora.


Note You need to log in before you can comment on or make changes to this bug.