diff options
author | morpheus65535 <[email protected]> | 2021-06-01 22:13:25 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2021-06-01 22:13:25 -0400 |
commit | 57080eda1119960e91fbda46e1a5c5d7191107b1 (patch) | |
tree | 5f3131c33ed016ff36d036cf8b6233c73aff6ccb | |
parent | 768701327025471e04619db80ead6ebe6c6e08c0 (diff) | |
download | bazarr-57080eda1119960e91fbda46e1a5c5d7191107b1.tar.gz bazarr-57080eda1119960e91fbda46e1a5c5d7191107b1.zip |
Fixed some incompatible calls with Radarr v4 APIv0.9.6-beta.16
-rw-r--r-- | bazarr/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bazarr/main.py b/bazarr/main.py index 2b791e391..62d2b18eb 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -187,9 +187,11 @@ def proxy(protocol, url): version = result.json()['version'] return dict(status=True, version=version) except Exception: - return dict(status=False, error='Error Occured. Check your settings.') + return dict(status=False, error='Error Occurred. Check your settings.') elif result.status_code == 401: return dict(status=False, error='Access Denied. Check API key.') + elif result.status_code == 404: + return dict(status=False, error='Cannot get version. Maybe unsupported legacy API call?') elif 300 <= result.status_code <= 399: return dict(status=False, error='Wrong URL Base.') else: |