mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-11 09:17:47 +08:00
WIP
This commit is contained in:
parent
574b4dfe99
commit
2dfe631e02
1 changed files with 2 additions and 2 deletions
|
@ -463,7 +463,7 @@ def download_log():
|
|||
@login_required
|
||||
def image_proxy(url):
|
||||
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:
|
||||
req = requests.get(url_image, stream=True, timeout=15, verify=False)
|
||||
except:
|
||||
|
@ -476,7 +476,7 @@ def image_proxy(url):
|
|||
@login_required
|
||||
def image_proxy_movies(url):
|
||||
apikey = settings.radarr.apikey
|
||||
url_image = url_radarr() + '/' + url + '?apikey=' + apikey
|
||||
url_image = url_radarr() + '/api/' + url + '?apikey=' + apikey
|
||||
try:
|
||||
req = requests.get(url_image, stream=True, timeout=15, verify=False)
|
||||
except:
|
||||
|
|
Loading…
Reference in a new issue