mirror of
https://github.com/Jackett/Jackett
synced 2025-03-04 18:59:01 +00:00
parent
75558af63a
commit
989d235900
1 changed files with 2 additions and 2 deletions
|
@ -377,14 +377,14 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
// Torrents - Category column == Text or Code
|
||||
// release.Category = MapTrackerCatDescToNewznab(row.Cq().Find("td:eq(0)").Text()); // Works for "Text" but only contains the parent category
|
||||
var catIcon = row.QuerySelector("td:nth-of-type(1) a");
|
||||
var catIcon = row.QuerySelector("td:nth-of-type(1) a[href^=\"?\"]");
|
||||
if (catIcon == null)
|
||||
{
|
||||
throw new Exception("Please, change the 'Torrents - Category column' option to 'Icons' in the website Settings. Wait a minute (cache) and then try again.");
|
||||
}
|
||||
|
||||
// Torrents - Category column == Icons
|
||||
var cat = MapTrackerCatToNewznab(catIcon.GetAttribute("href").Substring(1));
|
||||
var cat = MapTrackerCatToNewznab(catIcon.GetAttribute("href")?.Substring(1));
|
||||
|
||||
var size = ParseUtil.GetBytes(row.Children[sizeIndex].TextContent);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue