You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
720 B
24 lines
720 B
using NzbDrone.Core.ImportLists;
|
|
|
|
namespace Lidarr.Api.V1.ImportLists
|
|
{
|
|
public class ImportListModule : ProviderModuleBase<ImportListResource, IImportList, ImportListDefinition>
|
|
{
|
|
public static readonly ImportListResourceMapper ResourceMapper = new ImportListResourceMapper();
|
|
|
|
public ImportListModule(ImportListFactory importListFactory)
|
|
: base(importListFactory, "importlist", ResourceMapper)
|
|
{
|
|
}
|
|
|
|
protected override void Validate(ImportListDefinition definition, bool includeWarnings)
|
|
{
|
|
if (!definition.Enable)
|
|
{
|
|
return;
|
|
}
|
|
base.Validate(definition, includeWarnings);
|
|
}
|
|
}
|
|
}
|