youtube-dl: Add yt-dlp

youtube-dl currently is unbearably slow (double-digit KiB/s).
This commit is contained in:
Simon Bruder 2021-08-21 18:55:16 +02:00
parent 15fdc8756a
commit 9832f10d03
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

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