From 167e4d05843d14cd4b08dab5fa1e642b9f0a2f76 Mon Sep 17 00:00:00 2001 From: josdion Date: Tue, 21 Apr 2020 13:24:25 +0300 Subject: [PATCH] a better way to set base_url default value --- bazarr/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bazarr/config.py b/bazarr/config.py index 3efd8ecda..64faf369f 100644 --- a/bazarr/config.py +++ b/bazarr/config.py @@ -150,7 +150,8 @@ else: settings = simpleconfigparser(defaults=defaults) 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():