l mpv: use yt-dlp

This commit is contained in:
lassulus 2021-10-24 19:53:43 +02:00
parent 6e61a2d9fc
commit 9a74f25e56

View File

@ -80,7 +80,12 @@ let
name = "mpv";
paths = [
(pkgs.writeDashBin "mpv" ''
exec ${pkgs.mpv}/bin/mpv -vo=gpu --no-config --script=${autosub} "$@"
exec ${pkgs.mpv}/bin/mpv \
-vo=gpu \
--no-config \
--script=${autosub} \
--script-opts=ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp \
"$@"
'')
pkgs.mpv
];