1
0
Fork 0
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:
morpheus65535 2021-06-01 21:53:32 -04:00
parent a2ec23bf44
commit e9ef40c629

View file

@ -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']