From e2b65c2468b0ae762a705f47c3edea0f73a59688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sun, 9 Feb 2020 09:44:40 -0500 Subject: [PATCH] WIP --- bazarr/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index 0f8e036e9..e73ad85ec 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -490,12 +490,11 @@ def image_proxy(url): @login_required def image_proxy_movies(url): apikey = settings.radarr.apikey + url_image = url_radarr() + '/' + url + '?apikey=' + apikey try: - url_image = (url_radarr() + '/' + url + '?apikey=' + apikey).replace('/fanart.jpg', '/banner.jpg') req = requests.get(url_image, stream=True, timeout=15, verify=False) except: - url_image = url_radarr_short() + '/' + url + '?apikey=' + apikey - req = requests.get(url_image, stream=True, timeout=15, verify=False) + return None else: return Response(stream_with_context(req.iter_content(2048)), content_type=req.headers['content-type'])