mirror of
https://github.com/Jackett/Jackett
synced 2025-03-05 11:18:14 +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
|
@ -1451,11 +1451,18 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
if (Search.Rows.Count != null)
|
||||
{
|
||||
var countVal = handleJsonSelector(Search.Rows.Count, parsedJson, variables);
|
||||
|
||||
if (int.TryParse(countVal, out var count) && count < 1)
|
||||
try
|
||||
{
|
||||
continue;
|
||||
var countVal = handleJsonSelector(Search.Rows.Count, parsedJson, variables);
|
||||
|
||||
if (int.TryParse(countVal, out var count) && count < 1)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Trace(ex, "Failed to parse JSON rows count.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue