mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 17:17:12 +00:00
Fixed some incompatible calls with Radarr v4 API
This commit is contained in:
parent
a2ec23bf44
commit
e9ef40c629
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ def get_radarr_version():
|
|||
rv = url_radarr() + "/api/system/status?apikey=" + settings.radarr.apikey
|
||||
radarr_json = requests.get(rv, timeout=60, verify=False, headers=headers).json()
|
||||
if 'version' in radarr_json:
|
||||
radarr_version = 'unknown'
|
||||
radarr_version = radarr_json['version']
|
||||
else:
|
||||
rv = url_radarr() + "/api/v3/system/status?apikey=" + settings.radarr.apikey
|
||||
radarr_version = requests.get(rv, timeout=60, verify=False, headers=headers).json()['version']
|
||||
|
|
Loading…
Reference in a new issue