mirror of
https://github.com/Jackett/Jackett.git
synced 2025-12-22 14:16:59 +01:00
tvvault: amend details href detection. resolves #11515
This commit is contained in:
@@ -115,7 +115,7 @@ namespace Jackett.Common.Indexers
|
|||||||
var rows = doc.QuerySelectorAll("table.torrent_table > tbody > tr.torrent");
|
var rows = doc.QuerySelectorAll("table.torrent_table > tbody > tr.torrent");
|
||||||
foreach (var row in rows)
|
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;
|
var title = qDetailsLink.TextContent;
|
||||||
// if it's a season search, we filter results. the trailing space is to match regex
|
// if it's a season search, we filter results. the trailing space is to match regex
|
||||||
if (query.Season > 0 && !seasonRegEx.Match($"{title} ").Success)
|
if (query.Season > 0 && !seasonRegEx.Match($"{title} ").Success)
|
||||||
@@ -123,7 +123,7 @@ namespace Jackett.Common.Indexers
|
|||||||
|
|
||||||
var description = qDetailsLink.NextSibling.TextContent.Trim();
|
var description = qDetailsLink.NextSibling.TextContent.Trim();
|
||||||
title += " " + description;
|
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 torrentId = qDetailsLink.GetAttribute("href").Split('=').Last();
|
||||||
var link = new Uri(SiteLink + "torrents.php?action=download&id=" + torrentId);
|
var link = new Uri(SiteLink + "torrents.php?action=download&id=" + torrentId);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user