mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-10 23:33:38 -07:00
parent
c712d932a0
commit
c105c9a65e
74 changed files with 3538 additions and 4 deletions
23
src/Lidarr.Api.V1/ImportLists/ImportListModule.cs
Normal file
23
src/Lidarr.Api.V1/ImportLists/ImportListModule.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue