1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-01 12:46:23 +00:00

rutracker: fix seeders. resolves #8629 (#8665)

This commit is contained in:
Diego Heras 2020-05-16 00:13:50 +02:00 committed by GitHub
parent b59bdc5cc8
commit f3a7e40b88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1612,8 +1612,14 @@ namespace Jackett.Common.Indexers
var qDetailsLink = Row.QuerySelector("td.t-title > div.t-title > a.tLink");
var qSize = Row.QuerySelector("td.tor-size");
var comments = new Uri(SiteLink + "forum/" + qDetailsLink.GetAttribute("href"));
var seedersString = Row.QuerySelector("td:nth-child(7) b").TextContent;
var seeders = string.IsNullOrWhiteSpace(seedersString) ? 0 : ParseUtil.CoerceInt(seedersString);
var seeders = 0;
var qSeeders = Row.QuerySelector("td:nth-child(7)");
if (qSeeders != null && !qSeeders.TextContent.Contains("дн"))
{
var seedersString = qSeeders.QuerySelector("b").TextContent;
if (!string.IsNullOrWhiteSpace(seedersString))
seeders = ParseUtil.CoerceInt(seedersString);
}
var timestr = Row.QuerySelector("td:nth-child(10)").GetAttribute("data-ts_text");
var forum = Row.QuerySelector("td.f-name > div.f-name > a");
var forumid = forum.GetAttribute("href").Split('=')[1];