|
|
@ -27,7 +27,7 @@ def update_series():
|
|
|
|
# Get shows data from Sonarr
|
|
|
|
# Get shows data from Sonarr
|
|
|
|
url_sonarr_api_series = url_sonarr + "/api/series?apikey=" + apikey_sonarr
|
|
|
|
url_sonarr_api_series = url_sonarr + "/api/series?apikey=" + apikey_sonarr
|
|
|
|
try:
|
|
|
|
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()
|
|
|
|
r.raise_for_status()
|
|
|
|
except requests.exceptions.HTTPError as errh:
|
|
|
|
except requests.exceptions.HTTPError as errh:
|
|
|
|
logging.exception("BAZARR Error trying to get series from Sonarr. Http error.")
|
|
|
|
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
|
|
|
|
url_sonarr_api_series = url_sonarr + "/api/profile?apikey=" + apikey_sonarr
|
|
|
|
try:
|
|
|
|
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:
|
|
|
|
except requests.exceptions.ConnectionError as errc:
|
|
|
|
error = True
|
|
|
|
error = True
|
|
|
|
logging.exception("BAZARR Error trying to get profiles from Sonarr. Connection Error.")
|
|
|
|
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
|
|
|
|
url_sonarr_api_series_v3 = url_sonarr + "/api/v3/languageprofile?apikey=" + apikey_sonarr
|
|
|
|
try:
|
|
|
|
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:
|
|
|
|
except requests.exceptions.ConnectionError as errc:
|
|
|
|
error = True
|
|
|
|
error = True
|
|
|
|
logging.exception("BAZARR Error trying to get profiles from Sonarr. Connection Error.")
|
|
|
|
logging.exception("BAZARR Error trying to get profiles from Sonarr. Connection Error.")
|
|
|
|