summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-03-25 14:48:30 -0400
committermorpheus65535 <[email protected]>2021-03-25 14:48:30 -0400
commit54eb0fc17411107ed85e9bca0ace4210ae2ad52b (patch)
treee6936fa9e1bb85d38b14e808986a92cdea7c30e8
parenta4684feaba914b6957135d08cdef68808f209380 (diff)
downloadbazarr-54eb0fc17411107ed85e9bca0ace4210ae2ad52b.tar.gz
bazarr-54eb0fc17411107ed85e9bca0ace4210ae2ad52b.zip
Fixed image proxy when you don't use a base url in Sonarr.
-rw-r--r--bazarr/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bazarr/main.py b/bazarr/main.py
index 29df4f0cb..9549d1982 100644
--- a/bazarr/main.py
+++ b/bazarr/main.py
@@ -95,8 +95,8 @@ def download_log():
def series_images(url):
url = url.strip("/")
apikey = settings.sonarr.apikey
- baseUrl = settings.sonarr.base_url.strip("/")
- url_image = (url_sonarr() + '/api' + url.lstrip(baseUrl) + '?apikey=' + apikey).replace('poster-250', 'poster-500')
+ baseUrl = settings.sonarr.base_url
+ url_image = (url_sonarr() + '/api/' + url.lstrip(baseUrl) + '?apikey=' + apikey).replace('poster-250', 'poster-500')
try:
req = requests.get(url_image, stream=True, timeout=15, verify=False)
except: