From 2b6d09bf55d1514faa8fde67a0b5bef8914782f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morav=C4=8D=C3=ADk=2C=20Marian?= Date: Mon, 30 Dec 2019 20:28:03 +0100 Subject: [PATCH] Change existing default base_url to '' --- bazarr/init.py | 6 ++++++ 1 file changed, 6 insertions(+) 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