diff --git a/bazarr/init.py b/bazarr/init.py index 81968eb98..13d64c772 100644 --- a/bazarr/init.py +++ b/bazarr/init.py @@ -58,6 +58,12 @@ if not settings.auth.apikey: with open(os.path.join(args.config_dir, 'config', 'config.ini'), 'w+') as handle: settings.write(handle) +# change default base_url to '' +if settings.general.base_url == '/': + settings.general.base_url = '' + with open(os.path.join(args.config_dir, 'config', 'config.ini'), 'w+') as handle: + settings.write(handle) + # create database file if not os.path.exists(os.path.join(args.config_dir, 'db', 'bazarr.db')): import sqlite3