Add option to toggle SSL verification for tautulli
This commit is contained in:
parent
8dfb5cc384
commit
c1604d4383
2 changed files with 5 additions and 2 deletions
|
@ -41,6 +41,7 @@ tautulli_url = 'https://tautulli.domain.tld'
|
||||||
tautulli_api_key = 'xxxxxxxxxxxxxxx'
|
tautulli_api_key = 'xxxxxxxxxxxxxxx'
|
||||||
tautulli_failback_ip = ''
|
tautulli_failback_ip = ''
|
||||||
tautulli_influxdb_db_name = 'plex'
|
tautulli_influxdb_db_name = 'plex'
|
||||||
|
tautulli_verify_ssl = True
|
||||||
|
|
||||||
########################## FIREWALL CONFIG ############################
|
########################## FIREWALL CONFIG ############################
|
||||||
asa_url = 'https://firewall.domain.tld'
|
asa_url = 'https://firewall.domain.tld'
|
||||||
|
|
|
@ -12,8 +12,10 @@ CURRENT_TIME = datetime.now(timezone.utc).astimezone().isoformat()
|
||||||
|
|
||||||
PAYLOAD = {'apikey': configuration.tautulli_api_key, 'cmd': 'get_activity'}
|
PAYLOAD = {'apikey': configuration.tautulli_api_key, 'cmd': 'get_activity'}
|
||||||
|
|
||||||
ACTIVITY = requests.get('{}/api/v2'.format(configuration.tautulli_url),
|
ACTIVITY = requests.get('{}/api/v2'.format(configuration.tautulli_url.rstrip('/')),
|
||||||
params=PAYLOAD).json()['response']['data']
|
params=PAYLOAD,
|
||||||
|
verify=configuration.tautulli_verify_ssl
|
||||||
|
).json()['response']['data']
|
||||||
|
|
||||||
SESSIONS = {d['session_id']: d for d in ACTIVITY['sessions']}
|
SESSIONS = {d['session_id']: d for d in ACTIVITY['sessions']}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue