Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ daemon.log
# Playwright output
**/test-results/*

# Markdownlint config
.markdownlint.json
1 change: 1 addition & 0 deletions docs/agents/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Struct defined in `src/internal/files/filemanager.go`. Defaults set in `getDefau
| `Notifications.Webhooks[].Method` | `method` | `string` | — | HTTP method (`POST`/`GET`/`PUT`) |
| `Notifications.Webhooks[].Headers` | `headers` | `map[string]string` | — | Request headers — values support `{{vars}}` |
| `Notifications.Webhooks[].Body` | `body` | `string` | — | Request body — supports `{{vars}}` |
| `Notifications.Webhooks[].Language` | `language` | `string` | — | Locale used to render the built-in `{{title}}`/`{{message}}` when the body does not supply its own. Empty = keep the daemon default (pt-BR), so a config written by an older release keeps firing in Portuguese exactly as before. Supported: `pt-BR`, `en` |
| `Notifications.BatchWindowSeconds` | `notifications.batch_window_seconds` | `int` | `60` | Agrupa os eventos de uma mesma janela num webhook só (uma fila **por evento**, nunca misturando sucesso com falha). `0` desliga: um webhook por evento, comportamento original. Um `config.json` anterior ao campo carrega com **60**, não com `0`: `LoadConfigs` desserializa por cima de `getDefaultConfig()`. Os 60s são medidos, não gosto — num backfill real de 67 organizes, janela de 10s entregaria 53 webhooks (e o serviço respondeu 429) e a de 60s entrega 24. Com um item na janela a mensagem é idêntica à não-agrupada; com N > 1, `{{title}}` ganha a contagem, `{{message}}` vira N linhas, `{{count}}` traz N, e `{{anime_name}}`/`{{episode}}`/`{{reason}}` ficam vazios (não existe valor único). Ver decisions.md #47 |
| `Priorities` | `priorities` | `nyaa.Priorities` | see below | Ordered lists driving torrent ranking/filtering. Defined in `src/internal/nyaa/priorities.go` |
| `Priorities.CriteriaOrder` | `priorities.criteria_order` | `[]string` | `["uncensored","source","resolution","health","codec","fansub","audio","size"]` | Order in which sort criteria are applied. `SortTorrentResults` only uses the episode-relevant subset (`uncensored`, `resolution`, `codec`, `health`, `fansub`, `size` — everything but `source`); `SortMovieResults` uses all. `health` sits **before** `fansub` on purpose — see [decisions.md #55](decisions.md#55-health-compara-faixa-de-seeders-e-vem-antes-de-fansub). **An existing `config.json` keeps the order it already has** (`LoadConfigs` unmarshals over the defaults), so to pick up the new order either edit `criteria_order` by hand or hit "restore defaults" on the Priorities page |
Expand Down
Loading