Fix resolution check on media info filter
This commit is contained in:
@@ -33,6 +33,7 @@ type ConfigInterface interface {
|
||||
GetUsername() string
|
||||
GetVersion() string
|
||||
MeetsConditions(directory, torrentName string, torrentSize int64, torrentIDs, fileNames []string, fileSizes []int64, mediaInfos []*ffprobe.ProbeData) bool
|
||||
ShouldAutoAnalyzeNewTorrents() bool
|
||||
ShouldForceIPv6() bool
|
||||
ShouldIgnoreRenames() bool
|
||||
ShouldServeFromRclone() bool
|
||||
@@ -43,6 +44,7 @@ type ZurgConfig struct {
|
||||
Token string `yaml:"token" json:"-"`
|
||||
|
||||
ApiTimeoutSecs int `yaml:"api_timeout_secs" json:"api_timeout_secs"`
|
||||
AutoAnalyzeNewTorrents bool `yaml:"auto_analyze_new_torrents" json:"auto_analyze_new_torrents"`
|
||||
CanRepair bool `yaml:"enable_repair" json:"enable_repair"`
|
||||
DownloadsEveryMins int `yaml:"downloads_every_mins" json:"downloads_every_mins"`
|
||||
DownloadTimeoutSecs int `yaml:"download_timeout_secs" json:"download_timeout_secs"`
|
||||
@@ -220,3 +222,7 @@ func (z *ZurgConfig) GetNumberOfHosts() int {
|
||||
}
|
||||
return z.NumberOfHosts
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) ShouldAutoAnalyzeNewTorrents() bool {
|
||||
return z.AutoAnalyzeNewTorrents
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user