mirror of https://github.com/Jackett/Jackett
HDTorrents: fix parsing
This commit is contained in:
parent
9ada58a6e3
commit
e7b9f8c5ec
|
@ -162,18 +162,18 @@ namespace Jackett.Indexers
|
||||||
release.MinimumSeedTime = 172800;
|
release.MinimumSeedTime = 172800;
|
||||||
|
|
||||||
|
|
||||||
|
// Sometimes the uploader column is missing
|
||||||
int seeders, peers;
|
int seeders, peers;
|
||||||
if (ParseUtil.TryCoerceInt(qRow.Find("td").Get(9).FirstChild.FirstChild.InnerText, out seeders))
|
if (ParseUtil.TryCoerceInt(qRow.Find("td:nth-last-child(3)").Text(), out seeders))
|
||||||
{
|
{
|
||||||
release.Seeders = seeders;
|
release.Seeders = seeders;
|
||||||
if (ParseUtil.TryCoerceInt(qRow.Find("td").Get(10).FirstChild.FirstChild.InnerText, out peers))
|
if (ParseUtil.TryCoerceInt(qRow.Find("td:nth-last-child(2)").Text(), out peers))
|
||||||
{
|
{
|
||||||
release.Peers = peers + release.Seeders;
|
release.Peers = peers + release.Seeders;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
release.Grabs = ParseUtil.CoerceLong(qRow.Find("td:nth-child(12)").Text());
|
release.Grabs = ParseUtil.CoerceLong(qRow.Find("td:nth-last-child(1)").Text());
|
||||||
|
|
||||||
string fullSize = qRow.Find("td.mainblockcontent").Get(6).InnerText;
|
string fullSize = qRow.Find("td.mainblockcontent").Get(6).InnerText;
|
||||||
release.Size = ReleaseInfo.GetBytes(fullSize);
|
release.Size = ReleaseInfo.GetBytes(fullSize);
|
||||||
|
|
Loading…
Reference in New Issue