diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-06-17 13:11:06 +0200 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-06-17 13:11:06 +0200 |
| commit | 5f0d36b66989e6c22a639ad395415ec93c187766 (patch) | |
| tree | 2e16fd754ed286fc666d327481f094093bd83e06 /share/cfg/gallery-dl.nix | |
| parent | bd0de18806f8863d6392d88f3423a5c7e5a899cf (diff) | |
gallery-dl, hx, add some clis
Diffstat (limited to 'share/cfg/gallery-dl.nix')
| -rw-r--r-- | share/cfg/gallery-dl.nix | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/share/cfg/gallery-dl.nix b/share/cfg/gallery-dl.nix index 320061b..3ee065b 100644 --- a/share/cfg/gallery-dl.nix +++ b/share/cfg/gallery-dl.nix @@ -1,4 +1,5 @@ -{ config, ... }: { +{ config, ... }: +{ programs.gallery-dl = { settings.extractor = { base-directory = "${config.xdg.userDirs.download}/gallery-dl"; @@ -21,11 +22,36 @@ compression = "store"; extension = "cbz"; filter = "extension not in ('zip', 'rar')"; - whitelist = [ "nhentai" "mangadex" ]; + whitelist = [ + "nhentai" + "mangadex" + ]; } ]; Danbooru.metadata = true; + + reddit = { + archive-format = "s_{subreddit}{filename}"; + directory = { + "locals().get('is_gallery')" = [ + "Reddit" + "S" + "{subreddit!C}" + "{title[:120]!t:?/_/R /_/}{id}" + ]; + "" = [ + "Reddit" + "S" + "{subreddit!C}" + ]; + }; + + filename = { + "locals().get('is_gallery')" = "{title[:120]!t:?/_/R /_/}{id}{num:?_//>02}.{extension}"; + "" = "{title[:120]!t:?/_/R /_/}{id}.{extension}"; + }; + }; }; # End of settings.extractor }; # End of programs.gallery-dl } |
