Skip to content
Update Expressions authored by l3uddz's avatar l3uddz
......@@ -20,3 +20,25 @@ A single release can be sent to multiple PVR's, provided it meets their associat
This is achieved using the expr module by [antonmedv](https://github.com/antonmedv/expr), the language definition can be found [here](https://github.com/antonmedv/expr/blob/master/docs/Language-Definition.md).
The expressions are evalulated against the following struct representation of each release:
```go
type ReleaseInfo struct {
TrackerName string
ReleaseTime string
TorrentName string
TorrentURL string
SizeString string
SizeBytes int64
Category string
Encoder string
Resolution string
Container string
Origin string
Tags string
Files []string
}
```
The `Files` array will only ever be populated when bencode has been enabled for the releases tracker.
\ No newline at end of file