From 4ddd4a18cd9f852d4d23510faae31dd0e0380866 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 29 Sep 2025 15:24:18 +0200 Subject: ... --- user-profiles/mpv/default.nix | 2 +- user-profiles/yt-dlp.nix | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'user-profiles') diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix index 48893f49..8cf330e8 100644 --- a/user-profiles/mpv/default.nix +++ b/user-profiles/mpv/default.nix @@ -106,7 +106,7 @@ config = { ytdl = true; ytdl-format = "ytdl"; - ytdl-raw-options = "sub-langs=\"${config.programs.yt-dlp.settings.sub-langs}\""; + # ytdl-raw-options = "sub-langs=\"${config.programs.yt-dlp.settings.sub-langs}\""; subs-with-matching-audio = false; audio-display = false; osd-font = "Fira Sans"; diff --git a/user-profiles/yt-dlp.nix b/user-profiles/yt-dlp.nix index 9e30bba8..eefa673f 100644 --- a/user-profiles/yt-dlp.nix +++ b/user-profiles/yt-dlp.nix @@ -7,21 +7,25 @@ cookies-from-browser = "firefox::none"; mark-watched = true; format = lib.concatStringsSep "/" [ - "bestvideo*[width<=2560][height<=1440][fps<=60][vcodec!*=av01][vcodec!*=avc1]+bestaudio" - "best[width<=2560][height<=1440][fps<=60][vcodec!*=av01][vcodec!*=avc1]" - "bestvideo*[vcodec!*=av01][vcodec!*=avc1]+bestaudio" - "best[vcodec!*=av01][vcodec!*=avc1]" + "bestvideo*[width<=2560][height<=1440][fps<=60][vcodec!*=av01][width>=1920]+bestaudio" + "best[width<=2560][height<=1440][fps<=60][vcodec!*=av01][width>=1920]" + "bestvideo*[vcodec!*=av01][width>=1920]+bestaudio" + "best[vcodec!*=av01][width>=1920]" + "bestvideo*[width<=2560][height<=1440][fps<=60][vcodec!*=av01][height>=1080]+bestaudio" + "best[width<=2560][height<=1440][fps<=60][vcodec!*=av01][height>=1080]" + "bestvideo*[vcodec!*=av01][height>=1080]+bestaudio" + "best[vcodec!*=av01][height>=1080]" "bestvideo*[width<=2560][height<=1440][fps<=60]+bestaudio" "best[width<=2560][height<=1440][fps<=60]" "bestvideo*+bestaudio" "best" ]; - embed-subs = true; + # embed-subs = true; embed-thumbnail = true; embed-metadata = true; # write-subs = true; - write-auto-subs = true; - sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat"; + # write-auto-subs = true; + # sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat"; prefer-free-formats = true; # downloader = "${pkgs.axel}/bin/axel"; concurrent-fragments = 12; -- cgit v1.2.3