mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-12 17:03:59 +08:00
Fix url base not ending with a / for bazarr #86
This commit is contained in:
parent
575948f745
commit
dd8f907ac5
1 changed files with 7 additions and 2 deletions
|
@ -18,8 +18,13 @@ def get_general_settings():
|
|||
ip = general_settings[0]
|
||||
port = general_settings[1]
|
||||
base_url = general_settings[2]
|
||||
if base_url == (''):
|
||||
base_url = '/'
|
||||
if base_url == None:
|
||||
base_url = "/"
|
||||
if base_url.startswith("/") == False:
|
||||
base_url = "/" + base_url
|
||||
if base_url.endswith("/") == False:
|
||||
base_url = base_url + "/"
|
||||
|
||||
if general_settings[3] is None:
|
||||
path_mappings = []
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue