ArrJanitor::Config
Inherits JSON::Serializable < YAML::Serializable < Reference < Object
Application configuration: a list of Sonarr/Radarr backends to watch, each with its own poll interval, bad-extension filter, and download-client credentials. Parses from either YAML or JSON.
Constants
Default SQLite database path when none is configured.
Default retention window for processed_downloads audit rows.
Constructors
Loads a config from path. YAML wins: .yml/.yaml parse as YAML,
.json as JSON, and anything else tries YAML first then JSON.
Instance methods
Optional path to the SQLite persistence database. See #database_path.
When true, act as a dry run: log intended deletes/blocklists/searches
without mutating Sonarr/qBittorrent or writing to the store. Can also be
enabled at runtime via the --dry-run/-n CLI flag.
When true, act as a dry run: log intended deletes/blocklists/searches
without mutating Sonarr/qBittorrent or writing to the store. Can also be
enabled at runtime via the --dry-run/-n CLI flag.
Optional log level (one of LOG_LEVEL_NAMES, case-insensitive). Sits
lowest in the precedence chain below the -l/--log-level flag and the
ARR_JANITOR_LOG_LEVEL env var; an invalid value is a validation error.
Optional log level (one of LOG_LEVEL_NAMES, case-insensitive). Sits
lowest in the precedence chain below the -l/--log-level flag and the
ARR_JANITOR_LOG_LEVEL env var; an invalid value is a validation error.
Optional retention window for processed-download audit rows, as
<int>[m|h|d]. See #retention_span.
Optional retention window for processed-download audit rows, as
<int>[m|h|d]. See #retention_span.
The retention window as a Time::Span. Defaults to DEFAULT_RETENTION
when unset/blank; raises Config::Error on a malformed value.
Validates the config, raising Config::Error listing all problems.
Returns self when valid.