Unverified Commit 5ec4b3fc authored by Mynacol's avatar Mynacol Committed by Sandro Jäckel
Browse files

yt-dlp: Add deno javascript runtime by default

This is now required for full YouTube extraction support. The upstream
project recommends deno as JavaScript runtime for its complete sandbox
support.
See https://github.com/yt-dlp/yt-dlp/wiki/EJS for more info.

Also disable the new javascript support in yt-dlp-light.
parent d743dbde
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -4,11 +4,13 @@
  fetchFromGitHub,
  ffmpeg-headless,
  rtmpdump,
  deno,
  atomicparsley,
  pandoc,
  installShellFiles,
  atomicparsleySupport ? true,
  ffmpegSupport ? true,
  javascriptSupport ? true,
  rtmpSupport ? true,
  withAlias ? false, # Provides bin/youtube-dl for backcompat
  nix-update-script,
@@ -80,14 +82,15 @@ python3Packages.buildPythonApplication rec {

  # Ensure these utilities are available in $PATH:
  # - ffmpeg: post-processing & transcoding support
  # - deno: required for full YouTube support (since 2025.11.12)
  # - rtmpdump: download files over RTMP
  # - atomicparsley: embedding thumbnails
  makeWrapperArgs =
    let
      packagesToBinPath =
        [ ]
        ++ lib.optional atomicparsleySupport atomicparsley
        lib.optional atomicparsleySupport atomicparsley
        ++ lib.optional ffmpegSupport ffmpeg-headless
        ++ lib.optional javascriptSupport deno
        ++ lib.optional rtmpSupport rtmpdump;
    in
    lib.optionals (packagesToBinPath != [ ]) [
+1 −0
Original line number Diff line number Diff line
@@ -12763,6 +12763,7 @@ with pkgs;
  yt-dlp-light = yt-dlp.override {
    atomicparsleySupport = false;
    ffmpegSupport = false;
    javascriptSupport = false;
    rtmpSupport = false;
  };