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.
23 lines
665 B
23 lines
665 B
7 years ago
|
using System.Linq;
|
||
|
using System.Reflection;
|
||
|
using NzbDrone.Core.Configuration;
|
||
|
using Lidarr.Http;
|
||
7 years ago
|
using NzbDrone.Core.Validation;
|
||
7 years ago
|
|
||
7 years ago
|
namespace Lidarr.Api.V1.Config
|
||
7 years ago
|
{
|
||
|
public class MetadataProviderConfigModule : SonarrConfigModule<MetadataProviderConfigResource>
|
||
|
{
|
||
|
public MetadataProviderConfigModule(IConfigService configService)
|
||
|
: base(configService)
|
||
|
{
|
||
7 years ago
|
SharedValidator.RuleFor(c => c.MetadataSource).IsValidUrl();
|
||
7 years ago
|
}
|
||
|
|
||
|
protected override MetadataProviderConfigResource ToResource(IConfigService model)
|
||
|
{
|
||
|
return MetadataProviderConfigResourceMapper.ToResource(model);
|
||
|
}
|
||
|
}
|
||
|
}
|