diff options
Diffstat (limited to 'home/programs/yt-dlp.nix')
| -rw-r--r-- | home/programs/yt-dlp.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/home/programs/yt-dlp.nix b/home/programs/yt-dlp.nix new file mode 100644 index 0000000..855c052 --- /dev/null +++ b/home/programs/yt-dlp.nix @@ -0,0 +1,20 @@ +{ ... }: +{ + programs.yt-dlp = { + enable = true; + settings = { + mtime = false; + merge-output-format = "mkv"; + restrict-filenames = true; + embed-thumbnail = true; + embed-metadata = true; + embed-chapters = true; + sponsorblock-mark = "sponsor"; + output = "~/Movies/%(uploader)s/%(upload_date>%Y-%m-%d)s-%(title)s-%(id)s.%(ext)s"; + write-sub = true; + write-auto-sub = true; + sub-langs = "en.\\*"; + format = "bestvideo*[format_id!*=-sr]+bestaudio/best[format_id!*=-sr]"; + }; + }; +} |
