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:
JigSaw 2021-06-18 13:36:19 +02:00 committed by GitHub
parent 0ac99cbe08
commit f832337d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -235,10 +235,6 @@ namespace Jackett.Common.Indexers
// Torrents Result Count
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
{
// If contains torrents
@ -296,6 +292,13 @@ namespace Jackett.Common.Indexers
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++;
}
else