|
|
|
@ -258,8 +258,12 @@ class GetSonarrInfo:
|
|
|
|
|
else:
|
|
|
|
|
raise json.decoder.JSONDecodeError
|
|
|
|
|
except json.decoder.JSONDecodeError:
|
|
|
|
|
sv = url_sonarr() + "/api/v3/system/status?apikey=" + settings.sonarr.apikey
|
|
|
|
|
sonarr_version = requests.get(sv, timeout=60, verify=False, headers=headers).json()['version']
|
|
|
|
|
try:
|
|
|
|
|
sv = url_sonarr() + "/api/v3/system/status?apikey=" + settings.sonarr.apikey
|
|
|
|
|
sonarr_version = requests.get(sv, timeout=60, verify=False, headers=headers).json()['version']
|
|
|
|
|
except json.decoder.JSONDecodeError:
|
|
|
|
|
logging.debug('BAZARR cannot get Sonarr version')
|
|
|
|
|
sonarr_version = 'unknown'
|
|
|
|
|
except Exception:
|
|
|
|
|
logging.debug('BAZARR cannot get Sonarr version')
|
|
|
|
|
sonarr_version = 'unknown'
|
|
|
|
|