blob: 19eeeb4481fa1215b1977d9fe72e9981ec391688 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ config, lib, ... }:
let
cfg = config.hm.soft.yt-dlp;
in
{
options.hm.soft.yt-dlp.enable = lib.mkEnableOption "youtube content downloading tool";
config = lib.mkIf cfg.enable {
programs.yt-dlp = {
enable = true;
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;
};
};
};
}
|