home | add config for yt-dlp
This commit is contained in:
parent
005382f7a3
commit
c71828c206
1 changed files with 40 additions and 25 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.mpv = {
|
programs = {
|
||||||
|
mpv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.wrapMpv (pkgs.mpv-unwrapped.override { vapoursynthSupport = true; }) { youtubeSupport = true; };
|
package = pkgs.wrapMpv (pkgs.mpv-unwrapped.override { vapoursynthSupport = true; }) { youtubeSupport = true; };
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -17,7 +18,7 @@
|
||||||
ytdl-raw-options = "no-playlist=";
|
ytdl-raw-options = "no-playlist=";
|
||||||
ytdl = "yes";
|
ytdl = "yes";
|
||||||
script-opts = "ytdl_hook-ytdl_path=/etc/profiles/per-user/don/bin/yt-dlp";
|
script-opts = "ytdl_hook-ytdl_path=/etc/profiles/per-user/don/bin/yt-dlp";
|
||||||
#scripts = [ pkgs.mpvScripts.autoload ];
|
#scripts = [ pkgs.mpvScripts.autoload ];
|
||||||
};
|
};
|
||||||
profiles = {
|
profiles = {
|
||||||
"protocol.https" = {
|
"protocol.https" = {
|
||||||
|
|
@ -29,4 +30,18 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
yt-dlp = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig =
|
||||||
|
''
|
||||||
|
--no-mtime
|
||||||
|
'';
|
||||||
|
settings = {
|
||||||
|
retries = "infinite";
|
||||||
|
fragment-retries = "infinite";
|
||||||
|
buffer-size = "16K";
|
||||||
|
http-chunk-size = "10M";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue