Skip to content
Update Expressions authored by l3uddz's avatar l3uddz
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
# Expressions # Expressions
```yaml ```yaml
ignores: filters:
- TorrentName contains "HEVC" accepts:
- TorrentName contains "x265"
- TorrentName contains "[HorribleSubs]"
- any (Files, {# matches "(?i)\\.(bdmv|mpls|miniso|cci|cer|clpi|m2ts|VOB|IFO|BUP|iso|rar|r01)$"})
```
```yaml
- accepts:
- TrackerName == "BTN" - TrackerName == "BTN"
ignores:
- TorrentName contains "HEVC"
- TorrentName contains "x265"
- TorrentName contains "[HorribleSubs]"
- any (Files, {# matches "(?i)\\.(bdmv|mpls|miniso|cci|cer|clpi|m2ts|VOB|IFO|BUP|iso|rar|r01)$"})
delays:
- 'not (TorrentName contains "1080") ? 15 : 0'
``` ```
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.
...@@ -41,4 +41,10 @@ type ReleaseInfo struct { ...@@ -41,4 +41,10 @@ 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.
\ No newline at end of file
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.