1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 09:12:38 +00:00

Fix for providers in wizard.

This commit is contained in:
morpheus65535 2019-01-01 21:03:23 -05:00
parent edf75a641c
commit af16492230
2 changed files with 2 additions and 2 deletions

View file

@ -231,7 +231,7 @@ def wizard():
db = sqlite3.connect(os.path.join(config_dir, 'db', 'bazarr.db'), timeout=30)
c = db.cursor()
settings_languages = c.execute("SELECT * FROM table_settings_languages ORDER BY name").fetchall()
settings_providers = c.execute("SELECT * FROM table_settings_providers ORDER BY name").fetchall()
settings_providers = sorted(provider_manager.names())
c.close()
return template('wizard', bazarr_version=bazarr_version, settings=settings,

View file

@ -348,7 +348,7 @@
<option value="">Providers</option>
%enabled_providers = []
%for provider in settings_providers:
<option value="{{provider[0]}}">{{provider[0]}}</option>
<option value="{{provider}}">{{provider}}</option>
%if provider[1] == True:
% enabled_providers.append(str(provider[0]))
%end