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,31 +1,46 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.mpv = {
|
programs = {
|
||||||
enable = true;
|
mpv = {
|
||||||
package = pkgs.wrapMpv (pkgs.mpv-unwrapped.override { vapoursynthSupport = true; }) { youtubeSupport = true; };
|
enable = true;
|
||||||
config = {
|
package = pkgs.wrapMpv (pkgs.mpv-unwrapped.override { vapoursynthSupport = true; }) { youtubeSupport = true; };
|
||||||
cache-on-disk = "yes";
|
config = {
|
||||||
cache = "yes";
|
cache-on-disk = "yes";
|
||||||
demuxer-max-back-bytes = "100M";
|
cache = "yes";
|
||||||
demuxer-max-bytes = "500M";
|
demuxer-max-back-bytes = "100M";
|
||||||
demuxer-readahead-secs = "20";
|
demuxer-max-bytes = "500M";
|
||||||
pause = "no";
|
demuxer-readahead-secs = "20";
|
||||||
save-position-on-quit = "yes";
|
pause = "no";
|
||||||
slang = "en";
|
save-position-on-quit = "yes";
|
||||||
user-agent = "Mozilla/5.0";
|
slang = "en";
|
||||||
ytdl-format = "bestvideo+bestaudio";
|
user-agent = "Mozilla/5.0";
|
||||||
ytdl-raw-options = "no-playlist=";
|
ytdl-format = "bestvideo+bestaudio";
|
||||||
ytdl = "yes";
|
ytdl-raw-options = "no-playlist=";
|
||||||
script-opts = "ytdl_hook-ytdl_path=/etc/profiles/per-user/don/bin/yt-dlp";
|
ytdl = "yes";
|
||||||
#scripts = [ pkgs.mpvScripts.autoload ];
|
script-opts = "ytdl_hook-ytdl_path=/etc/profiles/per-user/don/bin/yt-dlp";
|
||||||
};
|
#scripts = [ pkgs.mpvScripts.autoload ];
|
||||||
profiles = {
|
|
||||||
"protocol.https" = {
|
|
||||||
speed = 1.77;
|
|
||||||
keep-open = true;
|
|
||||||
};
|
};
|
||||||
"protocol.http" = {
|
profiles = {
|
||||||
profile = "protocol.https";
|
"protocol.https" = {
|
||||||
|
speed = 1.77;
|
||||||
|
keep-open = true;
|
||||||
|
};
|
||||||
|
"protocol.http" = {
|
||||||
|
profile = "protocol.https";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
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