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
|
@ -1451,11 +1451,18 @@ namespace Jackett.Common.Indexers
|
||||||
|
|
||||||
if (Search.Rows.Count != null)
|
if (Search.Rows.Count != null)
|
||||||
{
|
{
|
||||||
var countVal = handleJsonSelector(Search.Rows.Count, parsedJson, variables);
|
try
|
||||||
|
|
||||||
if (int.TryParse(countVal, out var count) && count < 1)
|
|
||||||
{
|
{
|
||||||
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