这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@AminurAlam
Copy link
Contributor

yt-dlp will soon have deno, node and bun as runtime dependencies. add two of them which are available in termux repos

previous discussion: #26680

@TomJo2000
Copy link
Member

@AminurAlam
Copy link
Contributor Author

waiting for the stable release to merge this

the new update will also require https://github.com/yt-dlp/ejs to work
i think it will probably be auto downloaded during runtime, ill test nightly and see if something needs to be added

@AminurAlam
Copy link
Contributor Author

@AminurAlam AminurAlam force-pushed the yt branch 2 times, most recently from 25e8524 to 2cfda7a Compare November 12, 2025 04:47
@AminurAlam
Copy link
Contributor Author

AminurAlam commented Nov 12, 2025

ejs is not bundled with yt-dlp so we need to:

  1. add a seperate package for yt-dlp-ejs
  2. or add --remote-components ejs:github to config and download it at runtime

NOTE: ejs has a different license (ISC and MIT) from yt-dlp (Unilicense), and yt-dlp will require a specific version of ejs so we cant just auto update it (i think creating an ejs subpackage is the right way?)

official announcement: yt-dlp/yt-dlp#15012

@robertkirkman
Copy link
Member

robertkirkman commented Nov 12, 2025

ejs is not bundled with yt-dlp so we need to:

1. add a seperate package for `yt-dlp-ejs`

2. or add `--remote-components ejs:github` to config and download it at runtime

NOTE: ejs has a different license (ISC and MIT) from yt-dlp (Unilicense), and yt-dlp will require a specific version of ejs so we cant just auto update it (i think creating an ejs subpackage is the right way?)

official announcement: yt-dlp/yt-dlp#15012

I noticed that there is yt-dlp-ejs package in AUR and also, importantly, someone responded to it in its comment and explained:

  • that they like the package and think that yes, it is good to have a completely separate package (not subpackage)
  • but also, that they recommend some changes to the AUR package that have not yet been implemented.

I suggest starting by reading the code of the AUR yt-dlp-ejs package, and then read the recommendations of the person who commented and try to apply them while writing the Termux package.

https://aur.archlinux.org/packages/yt-dlp-ejs

@gamer191
Copy link

or add --remote-components ejs:github to config and download it at runtime

That won't work on IPv6-only networks. --remote-components ejs:npm would work, but that doesn't support nodejs.

add a seperate package for yt-dlp-ejs

It can also be installed using the yt-dlp-ejs package on Pypi (pip's default repository). I don't know if that information is helpful, because I don't use Termux

@robertkirkman
Copy link
Member

robertkirkman commented Nov 12, 2025

It can also be installed using the yt-dlp-ejs package on Pypi (pip's default repository). I don't know if that information is helpful, because I don't use Termux

It is helpful, thanks.

The commands pip install yt-dlp and pip install yt-dlp-ejs both do work in Termux, but it was already decided by Tomjo2000 that Termux should also have pkg install python-yt-dlp, so it sounds as though Termux should also have pkg install yt-dlp-ejs to go with the pkg install python-yt-dlp.

@AminurAlam
Copy link
Contributor Author

will do a revision bump later

@TomJo2000
Copy link
Member

This needs to be rebased, the merge conflict needs to be fixed and finally it needs to be squashed.

I'll do that myself now because I'd like to merge this PR immediately after #27211.

and make NodeJS the default JavaScript runtime on 32bit arches
@TomJo2000 TomJo2000 merged commit 190afe4 into termux:master Nov 16, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants