|
|
@ -10,7 +10,6 @@ namespace NzbDrone.Core.CustomFormats
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public LanguageSpecificationValidator()
|
|
|
|
public LanguageSpecificationValidator()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
RuleFor(c => c.Value).GreaterThanOrEqualTo(0);
|
|
|
|
|
|
|
|
RuleFor(c => c.Value).Custom((value, context) =>
|
|
|
|
RuleFor(c => c.Value).Custom((value, context) =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!Language.All.Any(o => o.Id == value))
|
|
|
|
if (!Language.All.Any(o => o.Id == value))
|
|
|
|