a better way to set base_url default value

pull/943/head^2
josdion 5 years ago
parent cda0feb42a
commit 167e4d0584

@ -150,7 +150,8 @@ else:
settings = simpleconfigparser(defaults=defaults) settings = simpleconfigparser(defaults=defaults)
settings.read(os.path.join(args.config_dir, 'config', 'config.ini')) settings.read(os.path.join(args.config_dir, 'config', 'config.ini'))
base_url = settings.general.base_url if settings.general.base_url else '/' settings.general.base_url = settings.general.base_url if settings.general.base_url else '/'
base_url = settings.general.base_url
def url_sonarr(): def url_sonarr():

Loading…
Cancel
Save