tvvault: amend details href detection. resolves #11515

This commit is contained in:
Garfield69 2021-04-22 19:46:58 +12:00
parent d51581f503
commit b7f5c9711a
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ namespace Jackett.Common.Indexers
var rows = doc.QuerySelectorAll("table.torrent_table > tbody > tr.torrent");
foreach (var row in rows)
{
var qDetailsLink = row.QuerySelector("a[href^=\"torrents.php?id=\"]");
var qDetailsLink = row.QuerySelector("a[href*=\"torrents.php?id=\"]");
var title = qDetailsLink.TextContent;
// if it's a season search, we filter results. the trailing space is to match regex
if (query.Season > 0 && !seasonRegEx.Match($"{title} ").Success)
@ -123,7 +123,7 @@ namespace Jackett.Common.Indexers
var description = qDetailsLink.NextSibling.TextContent.Trim();
title += " " + description;
var details = new Uri(SiteLink + qDetailsLink.GetAttribute("href"));
var details = new Uri(qDetailsLink.GetAttribute("href"));
var torrentId = qDetailsLink.GetAttribute("href").Split('=').Last();
var link = new Uri(SiteLink + "torrents.php?action=download&id=" + torrentId);