youtube-dl: Add yt-dlp
youtube-dl currently is unbearably slow (double-digit KiB/s).
This commit is contained in:
parent
15fdc8756a
commit
9832f10d03
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue