62 lines
1.7 KiB
Nix
62 lines
1.7 KiB
Nix
{...}: {
|
|
programs = {
|
|
mpv = {
|
|
enable = true;
|
|
config = {
|
|
cache = "yes";
|
|
cache-on-disk = "no";
|
|
cache-pause-initial = "yes";
|
|
cache-pause-wait = "5";
|
|
cache-secs = "3600";
|
|
demuxer-cache-wait = "no";
|
|
demuxer-donate-buffer = "yes";
|
|
demuxer-max-back-bytes = "244141KiB";
|
|
demuxer-max-bytes = "732422KiB";
|
|
demuxer-readahead-secs = "60";
|
|
demuxer-seekable-cache = "auto";
|
|
demuxer-thread = "yes";
|
|
force-seekable = "yes";
|
|
gpu-context = "wayland";
|
|
hls-bitrate = "max";
|
|
hr-seek-framedrop = "no";
|
|
hr-seek = "yes";
|
|
index = "default";
|
|
save-position-on-quit = "yes";
|
|
script-opts = "ytdl_hook-ytdl_path=/home/don/.local/bin/yt-dlp";
|
|
# scripts=[ pkgs.mpvScripts.autoload ];
|
|
slang = "en";
|
|
user-agent = "Mozilla/5.0";
|
|
video-reversal-buffer = "488281KiB";
|
|
ytdl = "yes";
|
|
ytdl-format = "bestvideo+bestaudio";
|
|
# Only needed when/if youtube blocks annon access again
|
|
# ytdl-raw-options = "no-playlist=,cookies-from-browser=firefox,force-ipv4=";
|
|
ytdl-raw-options = "no-playlist=";
|
|
};
|
|
profiles = {
|
|
utube = {
|
|
"profile-cond" = "path:find('youtu%.?be')";
|
|
speed = 1.77;
|
|
keep-open = true;
|
|
};
|
|
nebula = {
|
|
"profile-cond" = "path:find('nebula.tv')";
|
|
speed = 1.77;
|
|
keep-open = true;
|
|
};
|
|
};
|
|
};
|
|
yt-dlp = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
--no-mtime
|
|
'';
|
|
settings = {
|
|
retries = "infinite";
|
|
fragment-retries = "infinite";
|
|
buffer-size = "16K";
|
|
http-chunk-size = "10M";
|
|
};
|
|
};
|
|
};
|
|
}
|