Fixed: (Cardigann) Skip rows parsing on zero rows

pull/1579/head
Bogdan 2 years ago
parent a184bb0784
commit 8e60c707b2

@ -101,6 +101,11 @@ namespace NzbDrone.Core.Indexers.Cardigann
throw new IndexerException(indexerResponse, "Error Parsing Rows Selector"); throw new IndexerException(indexerResponse, "Error Parsing Rows Selector");
} }
if (rowsArray.Count == 0)
{
return releases;
}
foreach (var row in rowsArray) foreach (var row in rowsArray)
{ {
var selObj = search.Rows.Attribute != null ? row.SelectToken(search.Rows.Attribute).Value<JToken>() : row; var selObj = search.Rows.Attribute != null ? row.SelectToken(search.Rows.Attribute).Value<JToken>() : row;

Loading…
Cancel
Save