mirror of https://github.com/Jackett/Jackett
tvvault: amend details href detection. resolves #11515
This commit is contained in:
parent
d51581f503
commit
b7f5c9711a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue