aboutsummaryrefslogtreecommitdiff
path: root/share/home/gallery-dl.nix
blob: 9231208221b92dbb38784ae6eb654bdd8e3d0d5f (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
29
30
31
32
{ config, ... }: {
  programs.gallery-dl = {
    enable = true;
    settings.extractor = {
      base-directory = "${config.xdg.userDirs.download}/gallery-dl";

      postprocessors = [
        {
          name = "metadata";
          mode = "json";
          whitelist = [
            "danbooru"
            "moebooru"
            "gelbooru"
            "sankaku"
            "nhentai"
            "rule34"
          ];
        }
        {
          name = "zip";
          compression = "store";
          extension = "cbz";
          filter = "extension not in ('zip', 'rar')";
          whitelist = [ "nhentai" "mangadex" ];
        }
      ];

      Danbooru.metadata = true;
    }; # End of settings.extractor
  }; # End of programs.gallery-dl
}