mirror of https://github.com/morpheus65535/bazarr
Fixed Radarr API call to get version with the latest nightly.
This commit is contained in:
parent
0e50335e2d
commit
e6c1dba37b
|
@ -315,6 +315,8 @@ class GetRadarrInfo:
|
||||||
if 'version' in radarr_json:
|
if 'version' in radarr_json:
|
||||||
radarr_version = radarr_json['version']
|
radarr_version = radarr_json['version']
|
||||||
else:
|
else:
|
||||||
|
raise json.decoder.JSONDecodeError
|
||||||
|
except json.decoder.JSONDecodeError:
|
||||||
rv = url_radarr() + "/api/v3/system/status?apikey=" + settings.radarr.apikey
|
rv = url_radarr() + "/api/v3/system/status?apikey=" + settings.radarr.apikey
|
||||||
radarr_version = requests.get(rv, timeout=60, verify=False, headers=headers).json()['version']
|
radarr_version = requests.get(rv, timeout=60, verify=False, headers=headers).json()['version']
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue