diff --git a/configs/default.nix b/configs/default.nix index 630767c..8624045 100644 --- a/configs/default.nix +++ b/configs/default.nix @@ -144,8 +144,8 @@ in { wcd = "source ${wcd}"; im = "${pkgs.openssh}/bin/ssh weechat@makanek -t tmux attach-session -t IM"; where = "source ${where}"; - yt = "${pkgs.youtube-dl}/bin/youtube-dl --add-metadata -ic"; # Download video link - yta = "${pkgs.youtube-dl}/bin/youtube-dl --add-metadata -xic"; # Download with audio + yt = "${pkgs.yt-dlp}/bin/yt-dlp --add-metadata -ic"; # Download video link + yta = "${pkgs.yt-dlp}/bin/yt-dlp --add-metadata -xic"; # Download with audio }; } {i18n.defaultLocale = "en_DK.UTF-8";} diff --git a/configs/mpv.nix b/configs/mpv.nix index bc11f5f..7395146 100644 --- a/configs/mpv.nix +++ b/configs/mpv.nix @@ -21,6 +21,7 @@ in { ytdl-format = "bestvideo[height<=?720][fps<=?30][vcodec!=?vp9]+bestaudio/best"; ytdl-raw-options = lib.concatStringsSep "," [''sub-lang="de,en"'' "write-sub=" "write-auto-sub="]; screenshot-template = "%F-%wH%wM%wS-%#04n"; + script-opts = "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp"; }; bindings = { "Alt+RIGHT" = "add video-rotate 90"; diff --git a/configs/newsboat.nix b/configs/newsboat.nix index de886f6..1f4a529 100644 --- a/configs/newsboat.nix +++ b/configs/newsboat.nix @@ -5,7 +5,7 @@ }: let ytdl-format = "'bestvideo[height<=?720][fps<=?30][vcodec!=?vp9]+bestaudio/best'"; - youtube-download = "${pkgs.ts}/bin/ts ${pkgs.youtube-dl}/bin/youtube-dl -f ${ytdl-format} --add-metadata"; + youtube-download = "${pkgs.ts}/bin/ts ${pkgs.yt-dlp}/bin/yt-dlp -f ${ytdl-format} --add-metadata"; newsboat-home = "${config.users.users.me.home}/cloud/Seafile/Documents/newsboat"; linkhandler-bin = "${pkgs.scripts.linkhandler}/bin/linkhandler";