From 8287ff4cf882fa33560fb6a27bddd3180d495fb4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Louis=20V=C3=A9zina?=
<5130500+morpheus65535@users.noreply.github.com>
Date: Sun, 12 Apr 2020 12:27:45 -0400
Subject: [PATCH 1/2] Restored Titrari settings
---
views/providers.tpl | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/views/providers.tpl b/views/providers.tpl
index 0bf3f019e..99c88e637 100644
--- a/views/providers.tpl
+++ b/views/providers.tpl
@@ -755,6 +755,28 @@
+
+
+
+
+
From b42887c5fad397b452fa839eb649d25ff32ab3aa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Louis=20V=C3=A9zina?=
<5130500+morpheus65535@users.noreply.github.com>
Date: Mon, 13 Apr 2020 08:20:14 -0400
Subject: [PATCH 2/2] Added logging to sonarr/radarr connection testing #900.
---
bazarr/main.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/bazarr/main.py b/bazarr/main.py
index 24f2c9b39..b12c2c543 100644
--- a/bazarr/main.py
+++ b/bazarr/main.py
@@ -2093,10 +2093,11 @@ def api_history():
@custom_auth_basic(check_credentials)
def test_url(protocol, url):
authorize()
- url = six.moves.urllib.parse.unquote(url)
+ url = protocol + "://" + six.moves.urllib.parse.unquote(url)
try:
- result = requests.get(protocol + "://" + url, allow_redirects=False, verify=False).json()['version']
- except:
+ result = requests.get(url, allow_redirects=False, verify=False).json()['version']
+ except Exception as e:
+ logging.exception('BAZARR cannot successfully contact this URL: ' + url)
return dict(status=False)
else:
return dict(status=True, version=result)