diff options
author | morpheus65535 <[email protected]> | 2021-06-01 21:53:32 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2021-06-01 21:53:32 -0400 |
commit | e9ef40c6296a1e2e0c81b0ee42e5d2a2955c5f60 (patch) | |
tree | 94a6b5b8cb8e546de7fa799fa48d3bd83c8f72e4 | |
parent | a2ec23bf444a794087eb363f46e4ceef3a15d53a (diff) | |
download | bazarr-e9ef40c6296a1e2e0c81b0ee42e5d2a2955c5f60.tar.gz bazarr-e9ef40c6296a1e2e0c81b0ee42e5d2a2955c5f60.zip |
Fixed some incompatible calls with Radarr v4 API
-rw-r--r-- | bazarr/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bazarr/utils.py b/bazarr/utils.py index f1c966b23..d8f8476fe 100644 --- a/bazarr/utils.py +++ b/bazarr/utils.py @@ -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'] |