mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Don't wipe categories when updating Newznab Indexer
This commit is contained in:
@@ -256,5 +256,18 @@ namespace NzbDrone.Core.Indexers
|
|||||||
|
|
||||||
return base.Create(definition);
|
return base.Create(definition);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Update(IndexerDefinition definition)
|
||||||
|
{
|
||||||
|
var provider = _providers.First(v => v.GetType().Name == definition.Implementation);
|
||||||
|
|
||||||
|
if (definition.Implementation == typeof(Newznab.Newznab).Name)
|
||||||
|
{
|
||||||
|
var settings = (NewznabSettings)definition.Settings;
|
||||||
|
settings.Categories = _newznabCapabilitiesProvider.GetCapabilities(settings)?.Categories.GetTorznabCategoryList() ?? null;
|
||||||
|
}
|
||||||
|
|
||||||
|
base.Update(definition);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user