mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
IPTorrents: add support for the optional file count column
This commit is contained in:
@@ -269,7 +269,11 @@ namespace Jackett.Indexers
|
|||||||
var cat = row.Cq().Find("td:eq(0) a").First().Attr("href").Substring(1);
|
var cat = row.Cq().Find("td:eq(0) a").First().Attr("href").Substring(1);
|
||||||
release.Category = MapTrackerCatToNewznab(cat);
|
release.Category = MapTrackerCatToNewznab(cat);
|
||||||
|
|
||||||
var grabs = row.Cq().Find("td:nth-child(7)").Text();
|
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-last-child(3)").Text();
|
||||||
release.Grabs = ParseUtil.CoerceInt(grabs);
|
release.Grabs = ParseUtil.CoerceInt(grabs);
|
||||||
|
|
||||||
if(row.Cq().Find("span.t_tag_free_leech").Any())
|
if(row.Cq().Find("span.t_tag_free_leech").Any())
|
||||||
|
Reference in New Issue
Block a user