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.
Lidarr/src/Lidarr.Api.V1/Config/MetadataProviderConfigModul...

23 lines
665 B

using System.Linq;
using System.Reflection;
using NzbDrone.Core.Configuration;
using Lidarr.Http;
using NzbDrone.Core.Validation;
namespace Lidarr.Api.V1.Config
{
public class MetadataProviderConfigModule : SonarrConfigModule<MetadataProviderConfigResource>
{
public MetadataProviderConfigModule(IConfigService configService)
: base(configService)
{
SharedValidator.RuleFor(c => c.MetadataSource).IsValidUrl();
}
protected override MetadataProviderConfigResource ToResource(IConfigService model)
{
return MetadataProviderConfigResourceMapper.ToResource(model);
}
}
}