From 87ecbf39c1c0cc8a3a3f4ee1d1878b34ea49f6b8 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 20 Nov 2023 00:47:27 +0200 Subject: [PATCH] Fixed: Autotagging Genres are case insensitive --- .../AutoTagging/Specifications/GenreSpecification.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/AutoTagging/Specifications/GenreSpecification.cs b/src/NzbDrone.Core/AutoTagging/Specifications/GenreSpecification.cs index 59173f312..032813f20 100644 --- a/src/NzbDrone.Core/AutoTagging/Specifications/GenreSpecification.cs +++ b/src/NzbDrone.Core/AutoTagging/Specifications/GenreSpecification.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Linq; using FluentValidation; +using NzbDrone.Common.Extensions; using NzbDrone.Core.Annotations; using NzbDrone.Core.Tv; using NzbDrone.Core.Validation; @@ -17,7 +18,7 @@ namespace NzbDrone.Core.AutoTagging.Specifications public class GenreSpecification : AutoTaggingSpecificationBase { - private static readonly GenreSpecificationValidator Validator = new GenreSpecificationValidator(); + private static readonly GenreSpecificationValidator Validator = new (); public override int Order => 1; public override string ImplementationName => "Genre"; @@ -27,7 +28,7 @@ namespace NzbDrone.Core.AutoTagging.Specifications protected override bool IsSatisfiedByWithoutNegate(Series series) { - return series.Genres.Any(genre => Value.Contains(genre)); + return series.Genres.Any(genre => Value.ContainsIgnoreCase(genre)); } public override NzbDroneValidationResult Validate()