Fixed: Autotagging Genres are case insensitive

This commit is contained in:
Bogdan 2023-11-20 00:47:27 +02:00 committed by GitHub
parent 174deb2509
commit 87ecbf39c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using FluentValidation; using FluentValidation;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Annotations; using NzbDrone.Core.Annotations;
using NzbDrone.Core.Tv; using NzbDrone.Core.Tv;
using NzbDrone.Core.Validation; using NzbDrone.Core.Validation;
@ -17,7 +18,7 @@ namespace NzbDrone.Core.AutoTagging.Specifications
public class GenreSpecification : AutoTaggingSpecificationBase public class GenreSpecification : AutoTaggingSpecificationBase
{ {
private static readonly GenreSpecificationValidator Validator = new GenreSpecificationValidator(); private static readonly GenreSpecificationValidator Validator = new ();
public override int Order => 1; public override int Order => 1;
public override string ImplementationName => "Genre"; public override string ImplementationName => "Genre";
@ -27,7 +28,7 @@ namespace NzbDrone.Core.AutoTagging.Specifications
protected override bool IsSatisfiedByWithoutNegate(Series series) 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() public override NzbDroneValidationResult Validate()