mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-05 23:33:53 +01:00
fixup! New: (Cardigann) Add AllowEmptyInputs
Co-Authored-By: Bogdan <mynameisbogdan@users.noreply.github.com>
This commit is contained in:
parent
ec8025c3dc
commit
fb5b325271
1 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,7 @@
|
|||
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 @@ private IEnumerable<IndexerRequest> GetRequest(Dictionary<string, object> variab
|
|||
{
|
||||
var inputValue = ApplyGoTemplateText(input.Value, variables);
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(inputValue) || search.AllowEmptyInputs)
|
||||
if (inputValue.IsNotNullOrWhiteSpace() || search.AllowEmptyInputs)
|
||||
{
|
||||
queryCollection.Add(input.Key, inputValue);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue