|
|
|
@ -319,8 +319,12 @@ class GetRadarrInfo:
|
|
|
|
|
else:
|
|
|
|
|
raise json.decoder.JSONDecodeError
|
|
|
|
|
except json.decoder.JSONDecodeError:
|
|
|
|
|
rv = url_radarr() + "/api/v3/system/status?apikey=" + settings.radarr.apikey
|
|
|
|
|
radarr_version = requests.get(rv, timeout=60, verify=False, headers=headers).json()['version']
|
|
|
|
|
try:
|
|
|
|
|
rv = url_radarr() + "/api/v3/system/status?apikey=" + settings.radarr.apikey
|
|
|
|
|
radarr_version = requests.get(rv, timeout=60, verify=False, headers=headers).json()['version']
|
|
|
|
|
except json.decoder.JSONDecodeError:
|
|
|
|
|
logging.debug('BAZARR cannot get Radarr version')
|
|
|
|
|
radarr_version = 'unknown'
|
|
|
|
|
except Exception:
|
|
|
|
|
logging.debug('BAZARR cannot get Radarr version')
|
|
|
|
|
radarr_version = 'unknown'
|
|
|
|
|