Skip to content
Update Expressions authored by l3uddz's avatar l3uddz
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
# Expressions # Expressions
```yaml ```yaml
filters:
accepts:
- TrackerName == "BTN"
ignores: ignores:
- TorrentName contains "HEVC" - TorrentName contains "HEVC"
- TorrentName contains "x265" - TorrentName contains "x265"
- TorrentName contains "[HorribleSubs]" - TorrentName contains "[HorribleSubs]"
- any (Files, {# matches "(?i)\\.(bdmv|mpls|miniso|cci|cer|clpi|m2ts|VOB|IFO|BUP|iso|rar|r01)$"}) - any (Files, {# matches "(?i)\\.(bdmv|mpls|miniso|cci|cer|clpi|m2ts|VOB|IFO|BUP|iso|rar|r01)$"})
``` delays:
- 'not (TorrentName contains "1080") ? 15 : 0'
```yaml
- accepts:
- TrackerName == "BTN"
``` ```
Expressions are used by Trackarr to determine which releases should be sent to a PVR. Expressions are used by Trackarr to determine which releases should be sent to a PVR.
...@@ -42,3 +42,9 @@ type ReleaseInfo struct { ...@@ -42,3 +42,9 @@ type ReleaseInfo struct {
``` ```
The `Files` array will only ever be populated when bencode has been enabled for the releases associated tracker. The `Files` array will only ever be populated when bencode has been enabled for the releases associated tracker.
Release filters are evaluated in the following order:
1. `ignores` - If the release **matches** an ignore, check the next enabled PVR.
2. `accepts` - If the release **does not match** an accept, check the next enabled PVR.
3. `delays` - If the release **matches** a delay, sleep for N seconds for pushing to PVR.