From 0afad23e91f4828076eba8aade8dbb43ee261a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 2 Oct 2019 21:46:05 -0400 Subject: [PATCH] Fix for get_***arr_version() when Sonarr and Radarr isn't configured. --- bazarr/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bazarr/utils.py b/bazarr/utils.py index e431d996e..1409f495f 100644 --- a/bazarr/utils.py +++ b/bazarr/utils.py @@ -100,9 +100,10 @@ def get_sonarr_version(): use_sonarr = settings.general.getboolean('use_sonarr') apikey_sonarr = settings.sonarr.apikey sv = url_sonarr + "/api/system/status?apikey=" + apikey_sonarr + sonarr_version = '' if use_sonarr: try: - sonarr_version = requests.get(sv, timeout=30, verify=False).json()['version'] + sonarr_version = requests.get(sv, timeout=60, verify=False).json()['version'] except Exception as e: logging.DEBUG('BAZARR cannot get Sonarr version') @@ -113,9 +114,10 @@ def get_radarr_version(): use_radarr = settings.general.getboolean('use_radarr') apikey_radarr = settings.radarr.apikey rv = url_radarr + "/api/system/status?apikey=" + apikey_radarr + radarr_version = '' if use_radarr: try: - radarr_version = requests.get(rv, timeout=30, verify=False).json()['version'] + radarr_version = requests.get(rv, timeout=60, verify=False).json()['version'] except Exception as e: logging.DEBUG('BAZARR cannot get Radarr version')