From fc6cf6169868e60c189e4b243330c3717ff159f3 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 26 May 2022 13:58:07 +0200 Subject: ... --- user-profiles/mpv/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'user-profiles/mpv') diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix index 4d6e3ea6..704ccab0 100644 --- a/user-profiles/mpv/default.nix +++ b/user-profiles/mpv/default.nix @@ -9,7 +9,7 @@ ytdl = true; sub = false; osd-font = "DejaVu Sans"; - vo = "gpu"; + # vo = "gpu"; hwdec = "auto"; force-window = "yes"; # af = "lavfi=[dynaudnorm=f=100:g=31:s=20.0]"; @@ -18,6 +18,8 @@ "vidscale=no" "deadzonesize=0.9" "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp" + "chapterskip-skip=sponsor" + "chapterskip-categories=sponsor>%[SponsorBlock%]: Sponsor" ]; }; scripts = [ @@ -55,6 +57,14 @@ passthru.scriptName = "mpris.so"; })) + (pkgs.stdenv.mkDerivation (sources.mpv-chapterskip // rec { + installPhase = '' + install -d $out/share/mpv/scripts + install -m 0644 chapterskip.lua $out/share/mpv/scripts/${passthru.scriptName} + ''; + + passthru.scriptName = "chapterskip.lua"; + })) ]; }; } -- cgit v1.2.3