mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-03 08:57:46 +02:00
cardigann: skip rows parsing on zero rows (#14233)
This commit is contained in:
@@ -1454,7 +1454,9 @@ namespace Jackett.Common.Indexers
|
||||
var countVal = handleJsonSelector(Search.Rows.Count, parsedJson, variables);
|
||||
|
||||
if (int.TryParse(countVal, out var count) && count < 1)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
var rowsArray = JsonParseRowsSelector(parsedJson, Search.Rows.Selector);
|
||||
@@ -1467,6 +1469,11 @@ namespace Jackett.Common.Indexers
|
||||
throw new Exception("Error Parsing Rows Selector. There are 0 rows.");
|
||||
}
|
||||
|
||||
if (rowsArray.Count == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach (var Row in rowsArray)
|
||||
{
|
||||
var selObj = Search.Rows.Attribute != null ? Row.SelectToken(Search.Rows.Attribute).Value<JToken>() : Row;
|
||||
|
Reference in New Issue
Block a user