diff options
Diffstat (limited to 'user-profiles/yt-dlp.nix')
-rw-r--r-- | user-profiles/yt-dlp.nix | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/user-profiles/yt-dlp.nix b/user-profiles/yt-dlp.nix index 4ec6d6f7..550d6a78 100644 --- a/user-profiles/yt-dlp.nix +++ b/user-profiles/yt-dlp.nix | |||
@@ -4,25 +4,29 @@ | |||
4 | programs.yt-dlp = { | 4 | programs.yt-dlp = { |
5 | enable = true; | 5 | enable = true; |
6 | settings = { | 6 | settings = { |
7 | cookies-from-browser = "firefox"; | 7 | cookies-from-browser = "firefox::none"; |
8 | mark-watched = true; | 8 | mark-watched = true; |
9 | format = lib.concatStringsSep "/" [ | 9 | format = lib.concatStringsSep "/" [ |
10 | "bestvideo[width<=3840][height<=2160][fps<=60]+bestaudio" | 10 | "bestvideo*[width<=3840][height<=2160][fps<=60]+bestaudio" |
11 | "best[width<=3840][height<=2160][fps<=60]" | 11 | "best[width<=3840][height<=2160][fps<=60]" |
12 | "bestvideo*+bestaudio" | ||
12 | "best" | 13 | "best" |
13 | ]; | 14 | ]; |
14 | sub-langs = "all,-live_chat,-rechat"; | 15 | embed-subs = true; |
16 | # write-subs = true; | ||
17 | # write-auto-subs = true; | ||
18 | sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat"; | ||
15 | prefer-free-formats = true; | 19 | prefer-free-formats = true; |
16 | embed-metadata = true; | 20 | embed-metadata = true; |
17 | # downloader = "${pkgs.axel}/bin/axel"; | 21 | # downloader = "${pkgs.axel}/bin/axel"; |
18 | concurrent-fragments = 12; | 22 | concurrent-fragments = 12; |
19 | buffer-size = "16K"; | 23 | buffer-size = "16K"; |
20 | sponsorblock-mark = "all"; | 24 | sponsorblock-mark = "all"; |
21 | restrict-filenames = true; | 25 | # restrict-filenames = true; |
22 | extractor-args = lib.concatStringsSep ";" [ | 26 | # extractor-args = lib.concatStringsSep ";" [ |
23 | "youtube:player-client=android,web" | 27 | # "youtube:player-client=android,web" |
24 | "youtube:formats=dashy" | 28 | # "youtube:formats=dashy" |
25 | ]; | 29 | # ]; |
26 | remux-video = "mp4>mkv"; | 30 | remux-video = "mp4>mkv"; |
27 | }; | 31 | }; |
28 | }; | 32 | }; |