mirror of
https://github.com/Jackett/Jackett
synced 2025-03-06 03:38:31 +00:00
cardigann: catch errors when search.rows.count
is not found in page
This commit is contained in:
parent
d69a846299
commit
9506193e1e
1 changed files with 11 additions and 4 deletions
|
@ -1450,6 +1450,8 @@ namespace Jackett.Common.Indexers
|
|||
throw new Exception("Error Parsing Json Response");
|
||||
|
||||
if (Search.Rows.Count != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
var countVal = handleJsonSelector(Search.Rows.Count, parsedJson, variables);
|
||||
|
||||
|
@ -1458,6 +1460,11 @@ namespace Jackett.Common.Indexers
|
|||
continue;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Trace(ex, "Failed to parse JSON rows count.");
|
||||
}
|
||||
}
|
||||
|
||||
var rowsArray = JsonParseRowsSelector(parsedJson, Search.Rows.Selector);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue