|
|
|
@ -216,15 +216,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
|
|
|
|
|
|
|
|
|
|
_logger.Debug("Populating config vars");
|
|
|
|
|
|
|
|
|
|
var defaultSettings = new List<SettingsField>
|
|
|
|
|
{
|
|
|
|
|
new SettingsField { Name = "username", Label = "Username", Type = "text" },
|
|
|
|
|
new SettingsField { Name = "password", Label = "Password", Type = "password" }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var settings = _definition.Settings ?? defaultSettings;
|
|
|
|
|
|
|
|
|
|
foreach (var setting in settings)
|
|
|
|
|
foreach (var setting in _definition.Settings)
|
|
|
|
|
{
|
|
|
|
|
var name = ".Config." + setting.Name;
|
|
|
|
|
var value = _settings.ExtraFieldData.GetValueOrDefault(setting.Name, setting.Default);
|
|
|
|
|