mirror of https://github.com/Jackett/Jackett
abnormal: fix no results error (#11932)
* abnormal: fix no results error * Update Abnormal.cs Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
This commit is contained in:
parent
0ac99cbe08
commit
f832337d85
|
@ -235,10 +235,6 @@ namespace Jackett.Common.Indexers
|
||||||
// Torrents Result Count
|
// Torrents Result Count
|
||||||
var torrentsCount = results.Length;
|
var torrentsCount = results.Length;
|
||||||
|
|
||||||
// Is there more pages to follow ?
|
|
||||||
var morePages = dom.QuerySelectorAll("div.mvc-grid-pager > button").Last().GetAttribute("tabindex");
|
|
||||||
if (morePages == "-1")
|
|
||||||
followingPages = false;
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// If contains torrents
|
// If contains torrents
|
||||||
|
@ -296,6 +292,13 @@ namespace Jackett.Common.Indexers
|
||||||
|
|
||||||
return release;
|
return release;
|
||||||
}));
|
}));
|
||||||
|
if (torrentsCount == 50)
|
||||||
|
{
|
||||||
|
// Is there more pages to follow ?
|
||||||
|
var morePages = dom.QuerySelectorAll("div.mvc-grid-pager > button").Last().GetAttribute("tabindex");
|
||||||
|
if (morePages == "-1")
|
||||||
|
followingPages = false;
|
||||||
|
}
|
||||||
nextPage++;
|
nextPage++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue