rutracker: update the result selectors. resolves #5781

the html from the site has changed and the size, seeders, leechers and date selectors needed adjustments.
This commit is contained in:
Garfield69 2019-08-04 09:10:09 +12:00
parent 64bb6bf905
commit 0c87134b82
1 changed files with 5 additions and 5 deletions

View File

@ -1550,23 +1550,23 @@ namespace Jackett.Common.Indexers
continue;
var qDetailsLink = Row.QuerySelector("td.t-title > div.t-title > a.tLink");
var qSize = Row.QuerySelector("td.tor-size > u");
var qSize = Row.QuerySelector("td.tor-size");
release.Title = qDetailsLink.TextContent;
release.Comments = new Uri(SiteLink + "forum/" + qDetailsLink.GetAttribute("href"));
release.Link = new Uri(SiteLink + "forum/" + qDownloadLink.GetAttribute("href"));
release.Guid = release.Comments;
release.Size = ReleaseInfo.GetBytes(qSize.TextContent);
release.Size = ReleaseInfo.GetBytes(qSize.GetAttribute("data-ts_text"));
var seeders = Row.QuerySelector("td:nth-child(7) > u").TextContent;
var seeders = Row.QuerySelector("td:nth-child(7)").TextContent;
if (string.IsNullOrWhiteSpace(seeders))
seeders = "0";
release.Seeders = ParseUtil.CoerceInt(seeders);
release.Peers = ParseUtil.CoerceInt(Row.QuerySelector("td:nth-child(8) > b").TextContent) + release.Seeders;
release.Peers = ParseUtil.CoerceInt(Row.QuerySelector("td:nth-child(8)").TextContent) + release.Seeders;
release.Grabs = ParseUtil.CoerceLong(Row.QuerySelector("td:nth-child(9)").TextContent);
var timestr = Row.QuerySelector("td:nth-child(10) > u").TextContent;
var timestr = Row.QuerySelector("td:nth-child(10)").GetAttribute("data-ts_text");
release.PublishDate = DateTimeUtil.UnixTimestampToDateTime(long.Parse(timestr));
var forum = Row.QuerySelector("td.f-name > div.f-name > a");