From 6f51633185e0aeab3aedfedb46abfdc9e5e5b14c Mon Sep 17 00:00:00 2001 From: Diego Heras Date: Sat, 20 Mar 2021 22:01:03 +0100 Subject: [PATCH] hd-torrents: improve response parsing (#11367) --- src/Jackett.Common/Indexers/HDTorrents.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Jackett.Common/Indexers/HDTorrents.cs b/src/Jackett.Common/Indexers/HDTorrents.cs index d730fbb84..a96cd6e6d 100644 --- a/src/Jackett.Common/Indexers/HDTorrents.cs +++ b/src/Jackett.Common/Indexers/HDTorrents.cs @@ -159,6 +159,9 @@ namespace Jackett.Common.Indexers var rows = dom.QuerySelectorAll("table.mainblockcontenttt tr:has(td.mainblockcontent)"); foreach (var row in rows.Skip(1)) { + if (row.Children.Length == 2) + continue; // fix bug with search: cohen + var mainLink = row.Children[2].QuerySelector("a"); var title = mainLink.TextContent; var details = new Uri(SiteLink + mainLink.GetAttribute("href"));