mirror of https://github.com/Radarr/Radarr
Fixed: Allow Unknown Language in Custom Format
(cherry picked from commit 65323d5e872cb87b1f3d16c520aef373f4447915)
This commit is contained in:
parent
9a567b93d0
commit
caea810908
|
@ -10,7 +10,7 @@ namespace NzbDrone.Core.CustomFormats
|
||||||
{
|
{
|
||||||
public LanguageSpecificationValidator()
|
public LanguageSpecificationValidator()
|
||||||
{
|
{
|
||||||
RuleFor(c => c.Value).NotEmpty();
|
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))
|
||||||
|
|
Loading…
Reference in New Issue