summaryrefslogtreecommitdiff
path: root/hm/soft/yt-dlp.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2026-01-11 20:53:40 +0100
committeradikro <adikro@disroot.org>2026-01-11 20:53:40 +0100
commit760a0edc2937fab375898bbd2f2a3011eb8c9756 (patch)
treed5841eb7dc00ef23f6d6a9b52699e83709a5f3cb /hm/soft/yt-dlp.nix
parent5d0f2554cf56459b0afd27d3ed437a7fa50602a9 (diff)
way too many changes to describe
Diffstat (limited to 'hm/soft/yt-dlp.nix')
-rw-r--r--hm/soft/yt-dlp.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/hm/soft/yt-dlp.nix b/hm/soft/yt-dlp.nix
index 4773464..e50f313 100644
--- a/hm/soft/yt-dlp.nix
+++ b/hm/soft/yt-dlp.nix
@@ -1,4 +1,4 @@
-{ config, lib, pkgs, ... }:
+{ config, lib, ... }:
let
cfg = config.hm.soft.yt-dlp;
in
@@ -7,9 +7,21 @@ in
config = lib.mkIf cfg.enable {
programs.yt-dlp = {
enable = true;
- package = pkgs.yt-dlp_git;
settings = {
+ format = "bestvideo+bestaudio/best";
+ merge-output-format = "webm";
+ prefer-free-formats = true;
+ paths = "~/dl/yt";
+ output = "\"%(uploader)s - %(title)s.%(ext)s\"";
+ download-archive = "~/.config/yt-dlp/archive.txt";
+ # restrict-filenames = true;
+
+ embed-subs = true;
+ sub-langs = "en.*";
+
+ embed-metadata = true;
+ embed-chapters = true;
};
};
};