mirror of https://github.com/lidarr/Lidarr
25 lines
682 B
C#
25 lines
682 B
C#
using NzbDrone.Core.Indexers;
|
|
|
|
namespace Lidarr.Api.V1.Indexers
|
|
{
|
|
public class IndexerModule : ProviderModuleBase<IndexerResource, IIndexer, IndexerDefinition>
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|