mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-24 06:17:08 -04:00
parent
31fe942c96
commit
65323d5e87
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ namespace NzbDrone.Core.CustomFormats
|
|||
{
|
||||
public LanguageSpecificationValidator()
|
||||
{
|
||||
RuleFor(c => c.Value).NotEmpty();
|
||||
RuleFor(c => c.Value).GreaterThanOrEqualTo(0);
|
||||
RuleFor(c => c.Value).Custom((value, context) =>
|
||||
{
|
||||
if (!Language.All.Any(o => o.Id == value))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue