From af16492230f91617eb1eb602b3f86317ca8d4d89 Mon Sep 17 00:00:00 2001
From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com>
Date: Tue, 1 Jan 2019 21:03:23 -0500
Subject: [PATCH] Fix for providers in wizard.
---
bazarr/main.py | 2 +-
views/wizard.tpl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bazarr/main.py b/bazarr/main.py
index d4f5c91aa..2c21b0b56 100644
--- a/bazarr/main.py
+++ b/bazarr/main.py
@@ -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,
diff --git a/views/wizard.tpl b/views/wizard.tpl
index 4ef9c157f..7f13b07b8 100644
--- a/views/wizard.tpl
+++ b/views/wizard.tpl
@@ -348,7 +348,7 @@
%enabled_providers = []
%for provider in settings_providers:
-
+
%if provider[1] == True:
% enabled_providers.append(str(provider[0]))
%end