pull/884/head
Louis Vézina 5 years ago
parent 574b4dfe99
commit 2dfe631e02

@ -463,7 +463,7 @@ def download_log():
@login_required @login_required
def image_proxy(url): def image_proxy(url):
apikey = settings.sonarr.apikey apikey = settings.sonarr.apikey
url_image = (url_sonarr() + '/' + url + '?apikey=' + apikey).replace('poster-250', 'poster-500') url_image = (url_sonarr() + '/api/' + url + '?apikey=' + apikey).replace('poster-250', 'poster-500')
try: try:
req = requests.get(url_image, stream=True, timeout=15, verify=False) req = requests.get(url_image, stream=True, timeout=15, verify=False)
except: except:
@ -476,7 +476,7 @@ def image_proxy(url):
@login_required @login_required
def image_proxy_movies(url): def image_proxy_movies(url):
apikey = settings.radarr.apikey apikey = settings.radarr.apikey
url_image = url_radarr() + '/' + url + '?apikey=' + apikey url_image = url_radarr() + '/api/' + url + '?apikey=' + apikey
try: try:
req = requests.get(url_image, stream=True, timeout=15, verify=False) req = requests.get(url_image, stream=True, timeout=15, verify=False)
except: except:

Loading…
Cancel
Save