mirror of https://github.com/Jackett/Jackett
Cardigann: add support for redirects on download selector
This commit is contained in:
parent
cba4fe074f
commit
9689ea7881
|
@ -1161,6 +1161,8 @@ namespace Jackett.Indexers
|
||||||
if (Download.Selector != null)
|
if (Download.Selector != null)
|
||||||
{
|
{
|
||||||
var response = await RequestStringWithCookies(link.ToString());
|
var response = await RequestStringWithCookies(link.ToString());
|
||||||
|
if (response.IsRedirect)
|
||||||
|
response = await RequestStringWithCookies(response.RedirectingTo);
|
||||||
var results = response.Content;
|
var results = response.Content;
|
||||||
var SearchResultParser = new HtmlParser();
|
var SearchResultParser = new HtmlParser();
|
||||||
var SearchResultDocument = SearchResultParser.Parse(results);
|
var SearchResultDocument = SearchResultParser.Parse(results);
|
||||||
|
|
Loading…
Reference in New Issue