From 08939f2fb4b6f7aca4916d8bd3b60535f3a992da Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 28 Aug 2023 09:49:32 -0700 Subject: [PATCH] Fixed: Auto Tag required not showing in the UI correctly Closes #5970 --- .../Specifications/CustomFormatSpecificationBase.cs | 1 + src/Sonarr.Api.V3/AutoTagging/AutoTaggingResource.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/CustomFormatSpecificationBase.cs b/src/NzbDrone.Core/CustomFormats/Specifications/CustomFormatSpecificationBase.cs index af168e883..7b2e2c0a3 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/CustomFormatSpecificationBase.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/CustomFormatSpecificationBase.cs @@ -23,6 +23,7 @@ namespace NzbDrone.Core.CustomFormats public bool IsSatisfiedBy(CustomFormatInput input) { var match = IsSatisfiedByWithoutNegate(input); + if (Negate) { match = !match; diff --git a/src/Sonarr.Api.V3/AutoTagging/AutoTaggingResource.cs b/src/Sonarr.Api.V3/AutoTagging/AutoTaggingResource.cs index 99a930ce8..16569d386 100644 --- a/src/Sonarr.Api.V3/AutoTagging/AutoTaggingResource.cs +++ b/src/Sonarr.Api.V3/AutoTagging/AutoTaggingResource.cs @@ -69,6 +69,7 @@ namespace Sonarr.Api.V3.AutoTagging var spec = (IAutoTaggingSpecification)SchemaBuilder.ReadFromSchema(resource.Fields, type, null); spec.Name = resource.Name; spec.Negate = resource.Negate; + spec.Required = resource.Required; return spec; } }