mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
After the last page a new link was appeared for premium action. Now it will not parsed as page link
This commit is contained in:
@@ -277,12 +277,17 @@ namespace Jackett.Common.Indexers
|
|||||||
if (pagelinks.Length > 0)
|
if (pagelinks.Length > 0)
|
||||||
{
|
{
|
||||||
// If there are several pages find the link for the latest one
|
// If there are several pages find the link for the latest one
|
||||||
var last_page_link = (pagelinks[pagelinks.Length - 1].Cq().Attr("href")).Trim();
|
for (int i= pagelinks.Length - 1; i > 0; i--)
|
||||||
|
{
|
||||||
// find out the number of the last page from the link
|
var last_page_link = (pagelinks[i].Cq().Attr("href")).Trim();
|
||||||
Match match = Regex.Match(last_page_link, @"(?<=[\?,&]oldal=)(\d+)(?=&)");
|
if (last_page_link.Contains("oldal"))
|
||||||
numVal = Int32.Parse(match.Value);
|
{
|
||||||
}
|
Match match = Regex.Match(last_page_link, @"(?<=[\?,&]oldal=)(\d+)(?=&)");
|
||||||
|
numVal = Int32.Parse(match.Value);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var limit = query.Limit;
|
var limit = query.Limit;
|
||||||
if (limit == 0)
|
if (limit == 0)
|
||||||
|
Reference in New Issue
Block a user