mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-24 14:57:16 +08:00
Fixed image proxy when you don't use a base url in Sonarr.
This commit is contained in:
parent
a4684feaba
commit
54eb0fc174
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue