v1.3.0: add options to flag all shows or specific shows as 18+

This commit is contained in:
xenofem 2023-07-11 12:20:40 -04:00
parent 1528bf3d9a
commit 4ec1794403
6 changed files with 16 additions and 3 deletions

View file

@ -26,6 +26,9 @@ directory:
- `SCREENCAP_BOT_COHOST_PAGE`: the cohost page the bot should post from
- `SCREENCAP_BOT_COHOST_DRAFT`: whether to create cohost posts as
drafts, eg for testing (default: `false`)
- `SCREENCAP_BOT_18PLUS`: whether posts should be flagged as
containing 18+ content (default: `false`). this can be overridden
for individual shows, see below.
- `RUST_LOG`: log levels, for the app as a whole and/or for specific
submodules/libraries. See
[`env_logger`](https://docs.rs/env_logger/latest/env_logger/)'s
@ -50,6 +53,9 @@ MS IGLOO:
parts:
1: The Hidden One Year War
2: Apocalypse 0079
Gundam 0069:
path: /home/user/media/Gundam 0069
18+: true
```
each top-level key is a show title, which will be used in spoiler
@ -66,3 +72,6 @@ warnings on posts and in image alt text. each show has two keys:
this is a map rather than a list, since show season numbers may be 1-indexed or 0-indexed.
- `weight`: an optional weight for this show in the random sampling of
shows. each show without a weight specified has a weight of `1.0`.
- `18+`: an optional setting for whether screencaps from this show
should be flagged as containing 18+ content. if present, this takes
precedence over the `SCREENCAP_BOT_18PLUS` environment variable.