mirror of
https://github.com/Radarr/Radarr
synced 2026-04-14 07:20:50 +02:00
22 lines
665 B
C#
22 lines
665 B
C#
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);
|
|
}
|
|
}
|
|
}
|