Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
Update Expressions
authored
Dec 22, 2019
by
l3uddz
Show whitespace changes
Inline
Side-by-side
Configuration/Expressions.md
View page @
af919144
...
...
@@ -2,16 +2,16 @@
# Expressions
```
yaml
filters
:
accepts
:
-
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)$"})
```
```
yaml
-
accepts
:
-
TrackerName == "BTN"
delays
:
-
'
not
(TorrentName
contains
"1080")
?
15
:
0'
```
Expressions are used by Trackarr to determine which releases should be sent to a PVR.
...
...
@@ -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.
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.