hd-torrents: improve response parsing (#11367)

This commit is contained in:
Diego Heras 2021-03-20 22:01:03 +01:00 committed by GitHub
parent aabb23cf53
commit 6f51633185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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"));