set base_url default value if it's empty string in config.ini

This can happen if switching back from hermes branch as it uses empty string as a default value of base_url.
pull/943/head^2
josdion 5 years ago
parent 6a34f2d35f
commit cda0feb42a

@ -150,7 +150,7 @@ 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 base_url = settings.general.base_url if settings.general.base_url else '/'
def url_sonarr(): def url_sonarr():

Loading…
Cancel
Save