diff options
Diffstat (limited to 'user-profiles/yt-dlp.nix')
| -rw-r--r-- | user-profiles/yt-dlp.nix | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/user-profiles/yt-dlp.nix b/user-profiles/yt-dlp.nix index ef0be87e..d611e5a4 100644 --- a/user-profiles/yt-dlp.nix +++ b/user-profiles/yt-dlp.nix | |||
| @@ -7,21 +7,30 @@ | |||
| 7 | cookies-from-browser = "firefox::none"; | 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<=2560][height<=1440][fps<=60][vcodec!*=av01][width>=1920]+bestaudio" | ||
| 11 | "best[width<=2560][height<=1440][fps<=60][vcodec!*=av01][width>=1920]" | ||
| 12 | "bestvideo*[vcodec!*=av01][width>=1920]+bestaudio" | ||
| 13 | "best[vcodec!*=av01][width>=1920]" | ||
| 14 | "bestvideo*[width<=2560][height<=1440][fps<=60][vcodec!*=av01][height>=1080]+bestaudio" | ||
| 15 | "best[width<=2560][height<=1440][fps<=60][vcodec!*=av01][height>=1080]" | ||
| 16 | "bestvideo*[vcodec!*=av01][height>=1080]+bestaudio" | ||
| 17 | "best[vcodec!*=av01][height>=1080]" | ||
| 10 | "bestvideo*[width<=2560][height<=1440][fps<=60]+bestaudio" | 18 | "bestvideo*[width<=2560][height<=1440][fps<=60]+bestaudio" |
| 11 | "best[width<=2560][height<=1440][fps<=60]" | 19 | "best[width<=2560][height<=1440][fps<=60]" |
| 12 | "bestvideo*+bestaudio" | 20 | "bestvideo*+bestaudio" |
| 13 | "best" | 21 | "best" |
| 14 | ]; | 22 | ]; |
| 15 | embed-subs = true; | 23 | # embed-subs = true; |
| 24 | embed-thumbnail = true; | ||
| 25 | embed-metadata = true; | ||
| 16 | # write-subs = true; | 26 | # write-subs = true; |
| 17 | write-auto-subs = true; | 27 | # write-auto-subs = true; |
| 18 | sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat"; | 28 | # sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat"; |
| 19 | prefer-free-formats = true; | 29 | prefer-free-formats = true; |
| 20 | embed-metadata = true; | ||
| 21 | # downloader = "${pkgs.axel}/bin/axel"; | 30 | # downloader = "${pkgs.axel}/bin/axel"; |
| 22 | concurrent-fragments = 12; | 31 | concurrent-fragments = 12; |
| 23 | buffer-size = "16K"; | 32 | buffer-size = "16K"; |
| 24 | sponsorblock-mark = "all"; | 33 | # sponsorblock-mark = "all"; |
| 25 | # restrict-filenames = true; | 34 | # restrict-filenames = true; |
| 26 | # extractor-args = lib.concatStringsSep ";" [ | 35 | # extractor-args = lib.concatStringsSep ";" [ |
| 27 | # "youtube:player-client=android,web" | 36 | # "youtube:player-client=android,web" |
| @@ -29,6 +38,7 @@ | |||
| 29 | # ]; | 38 | # ]; |
| 30 | remux-video = "mp4>mkv"; | 39 | remux-video = "mp4>mkv"; |
| 31 | output = lib.mkDefault "\"%(modified_date>%Y%m%d,release_date>%Y%m%d,upload_date>%Y%m%d)s %(title)s [%(uploader)s %(webpage_url)s].%(ext)s\""; | 40 | output = lib.mkDefault "\"%(modified_date>%Y%m%d,release_date>%Y%m%d,upload_date>%Y%m%d)s %(title)s [%(uploader)s %(webpage_url)s].%(ext)s\""; |
| 41 | audio-multistreams = true; | ||
| 32 | }; | 42 | }; |
| 33 | }; | 43 | }; |
| 34 | }; | 44 | }; |
