From fb5b325271a4964ed0fb53f9a32f412f61d3b936 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 26 Feb 2023 16:48:53 -0600 Subject: [PATCH] fixup! New: (Cardigann) Add AllowEmptyInputs Co-Authored-By: Bogdan --- .../Definitions/Cardigann/CardigannRequestGenerator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs index 65b4236da..4812d12a6 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs @@ -9,6 +9,7 @@ using AngleSharp.Html.Dom; using AngleSharp.Html.Parser; using Newtonsoft.Json.Linq; using NLog; +using NzbDrone.Common.Extensions; using NzbDrone.Common.Http; using NzbDrone.Core.Configuration; using NzbDrone.Core.Indexers.Definitions.Cardigann; @@ -1119,7 +1120,7 @@ namespace NzbDrone.Core.Indexers.Cardigann { var inputValue = ApplyGoTemplateText(input.Value, variables); - if (!string.IsNullOrWhiteSpace(inputValue) || search.AllowEmptyInputs) + if (inputValue.IsNotNullOrWhiteSpace() || search.AllowEmptyInputs) { queryCollection.Add(input.Key, inputValue); }