mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 01:27:07 +00:00
Fix for test Sonarr and Radarr connection not working caused by an unencoded url.
This commit is contained in:
parent
fda9badc95
commit
f56912d1d8
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,7 @@ import math
|
|||
import ast
|
||||
import hashlib
|
||||
import time
|
||||
import urllib
|
||||
|
||||
from get_languages import load_language_in_db, language_from_alpha3
|
||||
from get_providers import load_providers, get_providers, get_providers_auth
|
||||
|
@ -1689,6 +1690,7 @@ def api_history():
|
|||
@route(base_url + 'test_url/<protocol>/<url:path>', method='GET')
|
||||
@custom_auth_basic(check_credentials)
|
||||
def test_url(protocol, url):
|
||||
url = urllib.unquote(url)
|
||||
try:
|
||||
result = requests.get(protocol + "://" + url, allow_redirects=False).json()['version']
|
||||
except:
|
||||
|
|
Loading…
Reference in a new issue