cardigann: handle empty selector values for optional:true (#12294) #12288

This commit is contained in:
mikeoscar2006 2021-09-13 01:41:38 +05:30 committed by GitHub
parent 2e46aea227
commit bdff2209bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1415,7 +1415,7 @@ namespace Jackett.Common.Indexers
try
{
value = handleSelector(Field.Value, Row, variables, !isOptional);
if (isOptional && value == null)
if (isOptional && string.IsNullOrWhiteSpace(value))
{
variables[variablesKey] = null;
continue;