pvr: add options and support for anime (#17)
* pvr: begin adding options * pvr: add ability to configure add behaviour via config * pvr: add skip_anime * pvr: do not continue processing item if lookup failed or add to pvr failed
This commit is contained in:
@@ -20,6 +20,10 @@ type Client struct {
|
||||
rootFolder string
|
||||
qualityProfileId int
|
||||
|
||||
// options
|
||||
searchMissing bool
|
||||
addMonitored bool
|
||||
|
||||
apiURL string
|
||||
apiHeaders map[string]string
|
||||
apiTimeout time.Duration
|
||||
@@ -65,7 +69,9 @@ func New(c nabarr.PvrConfig, mode string, m *media.Client, cc *cache.Client) (*C
|
||||
name: strings.ToLower(c.Name),
|
||||
testMode: strings.EqualFold(mode, "test"),
|
||||
|
||||
rootFolder: c.RootFolder,
|
||||
rootFolder: c.RootFolder,
|
||||
searchMissing: util.BoolOrDefault(c.Options.SearchMissing, true),
|
||||
addMonitored: util.BoolOrDefault(c.Options.AddMonitored, true),
|
||||
|
||||
cache: cc,
|
||||
cacheTempDuration: c.CacheDuration,
|
||||
|
||||
Reference in New Issue
Block a user