youtube-dl: Add yt-dlp

youtube-dl currently is unbearably slow (double-digit KiB/s).
upower
Simon Bruder 2021-08-21 18:55:16 +02:00
parent 15fdc8756a
commit 9832f10d03
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 9 additions and 3 deletions

View File

@ -12,15 +12,21 @@ let
options = { options = {
format = lib.concatStringsSep "/" formats; format = lib.concatStringsSep "/" formats;
}; };
in
{ textConfig = lib.concatStringsSep
xdg.configFile."youtube-dl/config".text = lib.concatStringsSep
"\n" "\n"
(lib.mapAttrsToList (lib.mapAttrsToList
(k: v: "--${k} ${v}") (k: v: "--${k} ${v}")
options); options);
in
{
xdg.configFile = {
"youtube-dl/config".text = textConfig;
"yt-dlp/config".text = textConfig;
};
home.packages = with pkgs; [ home.packages = with pkgs; [
youtube-dl youtube-dl
unstable.yt-dlp
]; ];
} }