iptorrents: fix response without results. resolves #8066 (#8078)

This commit is contained in:
Diego Heras 2020-04-07 16:50:04 +02:00 committed by GitHub
parent 3cd459ef32
commit 1c34303f58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -191,6 +191,9 @@ namespace Jackett.Common.Indexers
foreach (var row in rows.Skip(1))
{
var qTitleLink = row.QuerySelector("a[href^=\"/details.php?id=\"]");
if (qTitleLink == null) // no results
continue;
// drop invalid char that seems to have cropped up in some titles. #6582
var title = qTitleLink.TextContent.Trim().Replace("\u000f", "");
var comments = new Uri(SiteLink + qTitleLink.GetAttribute("href").TrimStart('/'));