diff --git a/bazarr/main.py b/bazarr/main.py index afc8d0b17..93079d5d2 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -684,11 +684,11 @@ def api_movies_history(): @app.route('/test_url//', methods=['GET']) @login_required def test_url(protocol, url): - url = 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)