IPTorrents: add support for the optional file count column

This commit is contained in:
kaso17
2017-02-16 11:38:41 +01:00
parent 24a3d5d405
commit e6829438aa

View File

@@ -268,8 +268,12 @@ namespace Jackett.Indexers
var cat = row.Cq().Find("td:eq(0) a").First().Attr("href").Substring(1);
release.Category = MapTrackerCatToNewznab(cat);
var filesElement = row.Cq().Find("a[href*=\"/files\"]"); // optional
if (filesElement.Length == 1)
release.Files = ParseUtil.CoerceLong(filesElement.Text());
var grabs = row.Cq().Find("td:nth-child(7)").Text();
var grabs = row.Cq().Find("td:nth-last-child(3)").Text();
release.Grabs = ParseUtil.CoerceInt(grabs);
if(row.Cq().Find("span.t_tag_free_leech").Any())