mirror of https://github.com/morpheus65535/bazarr
Fix missing arguments in init file
This commit is contained in:
parent
1cdec28202
commit
752e4d931e
|
@ -98,7 +98,7 @@ if cfg.has_section('general'):
|
||||||
|
|
||||||
# Move providers settings from DB to config file
|
# Move providers settings from DB to config file
|
||||||
try:
|
try:
|
||||||
db = sqlite3.connect(os.path.join(config_dir, 'db', 'bazarr.db'), timeout=30)
|
db = sqlite3.connect(os.path.join(args.config_dir, 'db', 'bazarr.db'), timeout=30)
|
||||||
c = db.cursor()
|
c = db.cursor()
|
||||||
enabled_providers = c.execute("SELECT * FROM table_settings_providers WHERE enabled = 1").fetchall()
|
enabled_providers = c.execute("SELECT * FROM table_settings_providers WHERE enabled = 1").fetchall()
|
||||||
settings_providers = c.execute("SELECT * FROM table_settings_providers").fetchall()
|
settings_providers = c.execute("SELECT * FROM table_settings_providers").fetchall()
|
||||||
|
@ -125,7 +125,7 @@ try:
|
||||||
settings.legendastv.password = provider[3]
|
settings.legendastv.password = provider[3]
|
||||||
|
|
||||||
settings.general.enabled_providers = u'' if not providers_list else ','.join(providers_list)
|
settings.general.enabled_providers = u'' if not providers_list else ','.join(providers_list)
|
||||||
with open(os.path.join(config_dir, 'config', 'config.ini'), 'w+') as handle:
|
with open(os.path.join(args.config_dir, 'config', 'config.ini'), 'w+') as handle:
|
||||||
settings.write(handle)
|
settings.write(handle)
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
@ -186,4 +186,4 @@ def init_binaries():
|
||||||
|
|
||||||
return unrar
|
return unrar
|
||||||
|
|
||||||
init_binaries()
|
init_binaries()
|
||||||
|
|
Loading…
Reference in New Issue