mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
IPTorrents: enforce Torrents - Category column == Icons
This commit is contained in:
@@ -279,8 +279,9 @@ namespace Jackett.Common.Indexers
|
||||
var catIcon = row.Cq().Find("td:eq(0) a");
|
||||
if (catIcon.Length >= 1) // Torrents - Category column == Icons
|
||||
release.Category = MapTrackerCatToNewznab(catIcon.First().Attr("href").Substring(1));
|
||||
else // Torrents - Category column == Text (Code is not supported)
|
||||
release.Category = MapTrackerCatDescToNewznab(row.Cq().Find("td:eq(0)").Text());
|
||||
else // Torrents - Category column == Text or Code
|
||||
throw new Exception("Please go to " + SiteLink + "settings.php and change the \"Torrents - Category column\" option to \"Icons\". Wait a minute (cache) and then try again.");
|
||||
//release.Category = MapTrackerCatDescToNewznab(row.Cq().Find("td:eq(0)").Text()); // Works for "Text" but only contains the parent category
|
||||
|
||||
var filesElement = row.Cq().Find("a[href*=\"/files\"]"); // optional
|
||||
if (filesElement.Length == 1)
|
||||
|
Reference in New Issue
Block a user