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 = {
|
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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue