Fixed: Allow Unknown Language in Custom Format

Closes #5886
pull/5894/head
Mark McDowall 1 year ago
parent 31fe942c96
commit 65323d5e87

@ -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…
Cancel
Save