Fixed: Definition properties null on Indexer force save

pull/97/head
Qstick 4 years ago
parent 3989babb56
commit e999b869a6

@ -254,6 +254,8 @@ namespace NzbDrone.Core.Indexers
var provider = _providers.First(v => v.GetType().Name == definition.Implementation); var provider = _providers.First(v => v.GetType().Name == definition.Implementation);
SetProviderCharacteristics(provider, definition);
if (definition.Implementation == typeof(Newznab.Newznab).Name) if (definition.Implementation == typeof(Newznab.Newznab).Name)
{ {
var settings = (NewznabSettings)definition.Settings; var settings = (NewznabSettings)definition.Settings;
@ -272,6 +274,8 @@ namespace NzbDrone.Core.Indexers
{ {
var provider = _providers.First(v => v.GetType().Name == definition.Implementation); var provider = _providers.First(v => v.GetType().Name == definition.Implementation);
SetProviderCharacteristics(provider, definition);
if (definition.Implementation == typeof(Newznab.Newznab).Name) if (definition.Implementation == typeof(Newznab.Newznab).Name)
{ {
var settings = (NewznabSettings)definition.Settings; var settings = (NewznabSettings)definition.Settings;

Loading…
Cancel
Save