mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
tvvault: fix keywordless searches. resolves #11515
This commit is contained in:
@@ -92,7 +92,7 @@ namespace Jackett.Common.Indexers
|
|||||||
var qc = new NameValueCollection
|
var qc = new NameValueCollection
|
||||||
{
|
{
|
||||||
{ "order_by", "s3" },
|
{ "order_by", "s3" },
|
||||||
{ "order_way", "desc" },
|
{ "order_way", "DESC" },
|
||||||
{ "disablegrouping", "1" }
|
{ "disablegrouping", "1" }
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -101,7 +101,7 @@ namespace Jackett.Common.Indexers
|
|||||||
qc.Add("action", "advanced");
|
qc.Add("action", "advanced");
|
||||||
qc.Add("imdbid", query.ImdbID);
|
qc.Add("imdbid", query.ImdbID);
|
||||||
}
|
}
|
||||||
else
|
else if (!string.IsNullOrWhiteSpace(query.GetQueryString()))
|
||||||
qc.Add("searchstr", StripSearchString(query.GetQueryString()));
|
qc.Add("searchstr", StripSearchString(query.GetQueryString()));
|
||||||
|
|
||||||
var searchUrl = BrowseUrl + "?" + qc.GetQueryString();
|
var searchUrl = BrowseUrl + "?" + qc.GetQueryString();
|
||||||
@@ -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(qDetailsLink.GetAttribute("href"));
|
var details = new Uri(SiteLink + 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