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.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()