add lidarr to example.ini
This commit is contained in:
parent
ec4b069ec6
commit
f00bfa5be4
2 changed files with 17 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
[global]
|
||||
sonarr_server_ids = 1,2
|
||||
radarr_server_ids = 1,2
|
||||
lidarr_server_ids = 1
|
||||
tautulli_server_ids = 1
|
||||
ombi_server_ids = 1
|
||||
sickchill_server_ids = false
|
||||
|
@ -69,6 +70,18 @@ queue_run_seconds = 300
|
|||
get_missing = true
|
||||
get_missing_run_seconds = 300
|
||||
|
||||
[lidarr-1]
|
||||
url = lidarr1.domain.tld:8686
|
||||
apikey = xxxxxxxxxxxxxxxx
|
||||
ssl = false
|
||||
verify_ssl = false
|
||||
missing_days = 30
|
||||
missing_days_run_seconds = 300
|
||||
future_days = 30
|
||||
future_days_run_seconds = 300
|
||||
queue = true
|
||||
queue_run_seconds = 300
|
||||
|
||||
[ombi-1]
|
||||
url = ombi.domain.tld
|
||||
apikey = xxxxxxxxxxxxxxxx
|
||||
|
|
|
@ -15,7 +15,7 @@ class INIParser(object):
|
|||
self.config = None
|
||||
self.data_folder = data_folder
|
||||
self.filtered_strings = None
|
||||
self.services = ['sonarr', 'radarr', 'ombi', 'tautulli', 'sickchill', 'unifi']
|
||||
self.services = ['sonarr', 'radarr', 'lidarr', 'ombi', 'tautulli', 'sickchill', 'unifi']
|
||||
|
||||
self.logger = getLogger()
|
||||
self.influx_server = InfluxServer()
|
||||
|
@ -174,7 +174,7 @@ class INIParser(object):
|
|||
url = self.url_check(self.config.get(section, 'url'), section=section)
|
||||
|
||||
apikey = None
|
||||
if service not in ['ciscoasa', 'unifi']:
|
||||
if service != 'unifi':
|
||||
apikey = self.config.get(section, 'apikey')
|
||||
|
||||
scheme = 'https://' if self.config.getboolean(section, 'ssl') else 'http://'
|
||||
|
@ -183,11 +183,11 @@ class INIParser(object):
|
|||
if scheme != 'https://':
|
||||
verify_ssl = False
|
||||
|
||||
if service in ['sonarr', 'radarr']:
|
||||
if service in ['sonarr', 'radarr', 'lidarr']:
|
||||
queue = self.config.getboolean(section, 'queue')
|
||||
queue_run_seconds = self.config.getint(section, 'queue_run_seconds')
|
||||
|
||||
if service == 'sonarr':
|
||||
if service in ['sonarr', 'lidarr']:
|
||||
missing_days = self.config.getint(section, 'missing_days')
|
||||
future_days = self.config.getint(section, 'future_days')
|
||||
|
||||
|
|
Loading…
Reference in a new issue