From c61b467e33625e615e32670bcc59bac88c65b6df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sun, 14 Apr 2019 09:11:46 -0400 Subject: [PATCH] Fix for #397. --- bazarr/get_episodes.py | 2 +- bazarr/get_movies.py | 4 ++-- bazarr/get_series.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bazarr/get_episodes.py b/bazarr/get_episodes.py index 9493c5d9e..0f826e1c2 100644 --- a/bazarr/get_episodes.py +++ b/bazarr/get_episodes.py @@ -56,7 +56,7 @@ def sync_episodes(): # Get episodes data for a series from Sonarr url_sonarr_api_episode = url_sonarr + "/api/episode?seriesId=" + str(seriesId[0]) + "&apikey=" + apikey_sonarr try: - r = requests.get(url_sonarr_api_episode, timeout=15, verify=False) + r = requests.get(url_sonarr_api_episode, timeout=60, verify=False) r.raise_for_status() except requests.exceptions.HTTPError as errh: logging.exception("BAZARR Error trying to get episodes from Sonarr. Http error.") diff --git a/bazarr/get_movies.py b/bazarr/get_movies.py index 484630da7..f99a41479 100644 --- a/bazarr/get_movies.py +++ b/bazarr/get_movies.py @@ -29,7 +29,7 @@ def update_movies(): # Get movies data from radarr url_radarr_api_movies = url_radarr + "/api/movie?apikey=" + apikey_radarr try: - r = requests.get(url_radarr_api_movies, timeout=15, verify=False) + r = requests.get(url_radarr_api_movies, timeout=60, verify=False) r.raise_for_status() except requests.exceptions.HTTPError as errh: logging.exception("BAZARR Error trying to get movies from Radarr. Http error.") @@ -209,7 +209,7 @@ def get_profile_list(): url_radarr_api_movies = url_radarr + "/api/profile?apikey=" + apikey_radarr try: - profiles_json = requests.get(url_radarr_api_movies, timeout=15, verify=False) + profiles_json = requests.get(url_radarr_api_movies, timeout=60, verify=False) except requests.exceptions.ConnectionError as errc: logging.exception("BAZARR Error trying to get profiles from Radarr. Connection Error.") except requests.exceptions.Timeout as errt: diff --git a/bazarr/get_series.py b/bazarr/get_series.py index fdbd1fafc..b58d29e5e 100644 --- a/bazarr/get_series.py +++ b/bazarr/get_series.py @@ -27,7 +27,7 @@ def update_series(): # Get shows data from Sonarr url_sonarr_api_series = url_sonarr + "/api/series?apikey=" + apikey_sonarr try: - r = requests.get(url_sonarr_api_series, timeout=15, verify=False) + r = requests.get(url_sonarr_api_series, timeout=60, verify=False) r.raise_for_status() except requests.exceptions.HTTPError as errh: logging.exception("BAZARR Error trying to get series from Sonarr. Http error.") @@ -138,7 +138,7 @@ def get_profile_list(): url_sonarr_api_series = url_sonarr + "/api/profile?apikey=" + apikey_sonarr try: - profiles_json = requests.get(url_sonarr_api_series, timeout=15, verify=False) + profiles_json = requests.get(url_sonarr_api_series, timeout=60, verify=False) except requests.exceptions.ConnectionError as errc: error = True logging.exception("BAZARR Error trying to get profiles from Sonarr. Connection Error.") @@ -151,7 +151,7 @@ def get_profile_list(): url_sonarr_api_series_v3 = url_sonarr + "/api/v3/languageprofile?apikey=" + apikey_sonarr try: - profiles_json_v3 = requests.get(url_sonarr_api_series_v3, timeout=15, verify=False) + profiles_json_v3 = requests.get(url_sonarr_api_series_v3, timeout=60, verify=False) except requests.exceptions.ConnectionError as errc: error = True logging.exception("BAZARR Error trying to get profiles from Sonarr. Connection Error.")