- read [ignored_tags] instead of [ignored_domains], so tag-based ignoring
actually works
- match ignored tags as whole tags, not substrings ('ipt' no longer matches
'iptorrents')
- send the login-error notification through the Pushover client instead of
the non-existent module-level send_message()
- handle an empty torrent list instead of raising IndexError before any
summary is sent
- tag a new torrent once instead of once per code path
- honour toml_path without DOCKER in AppriseClient
- close replaced log handlers so the file descriptor is released
Also add the missing [telemetry] section to config.toml.example, which
qbit-maid.py requires at startup.
The tests that pinned each bug now assert the fixed behaviour, and the
suite still reports 100% coverage.
73 lines
1.6 KiB
TOML
Executable File
73 lines
1.6 KiB
TOML
Executable File
[qbittorrent]
|
|
host = "192.168.x.x"
|
|
port = 8080
|
|
username = "user"
|
|
password = "pass"
|
|
|
|
[logging]
|
|
use_log = true
|
|
log_level = "INFO"
|
|
log_path = "./qc.log"
|
|
# Optional: log rotation (defaults shown)
|
|
log_max_bytes = 5000000
|
|
log_backup_count = 3
|
|
|
|
[app_tags]
|
|
protected_tag = "ipt"
|
|
non_protected_tag = "public"
|
|
|
|
[torrent]
|
|
max_age = 2419200
|
|
min_age = 432000
|
|
delete_torrents = false
|
|
|
|
[pushover]
|
|
use_pushover = false
|
|
po_key = "<key>"
|
|
po_token = "<token>"
|
|
# Notification formatting
|
|
# format: "plain" (grouped text) or "html" (bold values, Pushover HTML)
|
|
# Counters render as "emoji value label", grouped two per line and joined
|
|
# with a middle dot, because Pushover uses a proportional font and padded
|
|
# columns do not align.
|
|
format = "plain"
|
|
use_emoji = true
|
|
include_hostname = false
|
|
notify_on_empty = true
|
|
# Optional: -2..2. Priority 2 also needs retry/expire (defaults shown).
|
|
# priority = 0
|
|
# sound = "pushover"
|
|
# retry = 60
|
|
# expire = 3600
|
|
|
|
[apprise]
|
|
use_apprise = false
|
|
host = "192.168.x.x"
|
|
port = 8088
|
|
aurls = 'mailto://user:pass@gmail.com'
|
|
|
|
[dragnet]
|
|
enable_dragnet = false
|
|
dragnet_outfile = "./orphaned.csv"
|
|
|
|
[telemetry]
|
|
enable_telemetry = false
|
|
telemetry_outfile = "./telemetry.csv"
|
|
|
|
[ignored_categories]
|
|
tech = "tech"
|
|
books = "books"
|
|
general = "general"
|
|
|
|
[ignored_domains]
|
|
iptorrents-empirehost = "ssl.empirehost.me"
|
|
iptorrents-stackoverflow = "localhost.stackoverflow.tech"
|
|
iptorrents-bgp = "routing.bgp.technology"
|
|
|
|
[ignored_tags]
|
|
save = "save"
|
|
|
|
[healthcheck]
|
|
use_healthcheck = true
|
|
healthcheck_url = "https://example.com/ping/<uuid>>"
|