mirror of
https://github.com/Jackett/Jackett
synced 2025-01-02 21:26:08 +00:00
BJShare: fix seeders/leechers
This commit is contained in:
parent
5095c543d0
commit
804dc12a47
1 changed files with 4 additions and 2 deletions
|
@ -257,8 +257,9 @@ Encoding = Encoding.UTF8;
|
|||
|
||||
var qDLLink = Row.QuerySelector("a[href^=\"torrents.php?action=download\"]");
|
||||
var qSize = Row.QuerySelector("td:nth-last-child(4)");
|
||||
var qSeeders = Row.QuerySelector("td:nth-last-child(3)");
|
||||
var qLeechers = Row.QuerySelector("td:nth-last-child(2)");
|
||||
var qGrabs = Row.QuerySelector("td:nth-last-child(3)");
|
||||
var qSeeders = Row.QuerySelector("td:nth-last-child(2)");
|
||||
var qLeechers = Row.QuerySelector("td:nth-last-child(1)");
|
||||
var qFreeLeech = Row.QuerySelector("strong[title=\"Free\"]");
|
||||
|
||||
if (Row.ClassList.Contains("group_torrent")) // torrents belonging to a group
|
||||
|
@ -304,6 +305,7 @@ Encoding = Encoding.UTF8;
|
|||
release.Comments = new Uri(SiteLink + qDetailsLink.GetAttribute("href"));
|
||||
release.Guid = release.Link;
|
||||
|
||||
release.Grabs = ParseUtil.CoerceLong(qGrabs.TextContent);
|
||||
release.Seeders = ParseUtil.CoerceInt(qSeeders.TextContent);
|
||||
release.Peers = ParseUtil.CoerceInt(qLeechers.TextContent) + release.Seeders;
|
||||
|
||||
|
|
Loading…
Reference in a new issue