From da425b04b1091f1df65437480832d08481672b52 Mon Sep 17 00:00:00 2001 From: crhammock <33229307+crhammock@users.noreply.github.com> Date: Thu, 11 Jan 2018 16:06:26 +0000 Subject: [PATCH] Updated: TMDbSettings.cs to allow pipe for or for genre ids (#2389) --- src/NzbDrone.Core/NetImport/TMDb/TMDbSettings.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/NzbDrone.Core/NetImport/TMDb/TMDbSettings.cs b/src/NzbDrone.Core/NetImport/TMDb/TMDbSettings.cs index e194b7fd5..2f5f03c18 100644 --- a/src/NzbDrone.Core/NetImport/TMDb/TMDbSettings.cs +++ b/src/NzbDrone.Core/NetImport/TMDb/TMDbSettings.cs @@ -36,19 +36,19 @@ namespace NzbDrone.Core.NetImport.TMDb RuleFor(c => c.Ceritification) .Matches(@"^\bNR\b|\bG\b|\bPG\b|\bPG\-13\b|\bR\b|\bNC\-17\b$", RegexOptions.IgnoreCase) .When(c => c.Ceritification.IsNotNullOrWhiteSpace()) - .WithMessage("Not a valid cerification"); + .WithMessage("Not a valid certification"); // CSV of numbers RuleFor(c => c.IncludeGenreIds) - .Matches(@"^\d+([,]\d+)*$", RegexOptions.IgnoreCase) + .Matches(@"^\d+([,|]\d+)*$", RegexOptions.IgnoreCase) .When(c => c.IncludeGenreIds.IsNotNullOrWhiteSpace()) - .WithMessage("Genre Ids must be comma separated number ids"); + .WithMessage("Genre Ids must be comma (,) or pipe (|) separated number ids"); // CSV of numbers RuleFor(c => c.ExcludeGenreIds) - .Matches(@"^\d+([,]\d+)*$", RegexOptions.IgnoreCase) + .Matches(@"^\d+([,|]\d+)*$", RegexOptions.IgnoreCase) .When(c => c.ExcludeGenreIds.IsNotNullOrWhiteSpace()) - .WithMessage("Genre Ids must be comma separated number ids"); + .WithMessage("Genre Ids must be comma (,) or pipe (|) separated number ids"); } } @@ -99,4 +99,4 @@ namespace NzbDrone.Core.NetImport.TMDb } } -} \ No newline at end of file +}