using NzbDrone.Core.Indexers; namespace Sonarr.Api.V3.Indexers { public class IndexerModule : ProviderModuleBase { public static readonly IndexerResourceMapper ResourceMapper = new IndexerResourceMapper(); public IndexerModule(IndexerFactory indexerFactory) : base(indexerFactory, "indexer", ResourceMapper) { } protected override void Validate(IndexerDefinition definition, bool includeWarnings) { if (!definition.Enable) return; base.Validate(definition, includeWarnings); } } }