mirror of
https://github.com/Jackett/Jackett
synced 2024-12-31 20:27:28 +00:00
Hounddawgs: make grabs optional
This commit is contained in:
parent
9a50a378cb
commit
c1e495b212
1 changed files with 5 additions and 3 deletions
|
@ -190,9 +190,11 @@ namespace Jackett.Indexers
|
|||
var sizeStr = row.ChildElements.ElementAt(5).Cq().Text();
|
||||
release.Size = ReleaseInfo.GetBytes(sizeStr);
|
||||
|
||||
release.Grabs = ParseUtil.CoerceInt(row.ChildElements.ElementAt(6).Cq().Text());
|
||||
release.Seeders = ParseUtil.CoerceInt(row.ChildElements.ElementAt(7).Cq().Text());
|
||||
release.Peers = ParseUtil.CoerceInt(row.ChildElements.ElementAt(8).Cq().Text()) + release.Seeders;
|
||||
var grabselement = row.Cq().Find("td:nth-last-child(3)");
|
||||
if (!grabselement.HasClass("nobr")) // Snatches column is optional, not all users see it (if class is nobr it's the size column)
|
||||
release.Grabs = ParseUtil.CoerceInt(grabselement.Text());
|
||||
release.Seeders = ParseUtil.CoerceInt(row.Cq().Find("td:nth-last-child(2)").Text());
|
||||
release.Peers = ParseUtil.CoerceInt(row.Cq().Find("td:nth-last-child(1)").Text()) + release.Seeders;
|
||||
|
||||
var files = row.Cq().Find("td:nth-child(4)").Text();
|
||||
release.Files = ParseUtil.CoerceInt(files);
|
||||
|
|
Loading…
Reference in a new issue