New: Add Monitored specification to Auto Tagging

(cherry picked from commit 8bd91bd86b5955da5d19c9f866e7de701b843e7b)
pull/4264/head
Bogdan 1 year ago
parent f2c625d17e
commit 1716651447

@ -0,0 +1,28 @@
using FluentValidation;
using NzbDrone.Core.Music;
using NzbDrone.Core.Validation;
namespace NzbDrone.Core.AutoTagging.Specifications
{
public class MonitoredSpecificationValidator : AbstractValidator<MonitoredSpecification>
{
}
public class MonitoredSpecification : AutoTaggingSpecificationBase
{
private static readonly MonitoredSpecificationValidator Validator = new ();
public override int Order => 1;
public override string ImplementationName => "Monitored";
protected override bool IsSatisfiedByWithoutNegate(Artist artist)
{
return artist.Monitored;
}
public override NzbDroneValidationResult Validate()
{
return new NzbDroneValidationResult(Validator.Validate(this));
}
}
}
Loading…
Cancel
Save