mirror of
https://github.com/Jackett/Jackett
synced 2025-01-01 12:46:23 +00:00
horriblesubs: keep cloudflare cookie (#8674)
This commit is contained in:
parent
0b94c0fc8f
commit
7b9aea89cb
1 changed files with 4 additions and 4 deletions
|
@ -72,7 +72,7 @@ namespace Jackett.Common.Indexers
|
|||
};
|
||||
|
||||
var searchUrl = ApiEndpoint + "?" + queryCollection.GetQueryString();
|
||||
var response = await RequestStringWithCookiesAndRetry(searchUrl, string.Empty);
|
||||
var response = await RequestStringWithCookiesAndRetry(searchUrl);
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -112,7 +112,7 @@ namespace Jackett.Common.Indexers
|
|||
};
|
||||
|
||||
var searchUrl = ApiEndpoint + "?" + queryCollection.GetQueryString();
|
||||
var response = await RequestStringWithCookiesAndRetry(searchUrl, string.Empty);
|
||||
var response = await RequestStringWithCookiesAndRetry(searchUrl);
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -146,7 +146,7 @@ namespace Jackett.Common.Indexers
|
|||
var releases = new List<ReleaseInfo>();
|
||||
var parser = new HtmlParser();
|
||||
|
||||
var response = await RequestStringWithCookiesAndRetry(resultUrl, string.Empty);
|
||||
var response = await RequestStringWithCookiesAndRetry(resultUrl);
|
||||
await FollowIfRedirect(response);
|
||||
|
||||
try
|
||||
|
@ -168,7 +168,7 @@ namespace Jackett.Common.Indexers
|
|||
var nextId = 0;
|
||||
while (true)
|
||||
{
|
||||
var showApiResponse = await RequestStringWithCookiesAndRetry(apiUrl + "&nextid=" + nextId, string.Empty);
|
||||
var showApiResponse = await RequestStringWithCookiesAndRetry(apiUrl + "&nextid=" + nextId);
|
||||
var showApiDom = parser.ParseDocument(showApiResponse.Content);
|
||||
var releaseRowResults = showApiDom.QuerySelectorAll("div.rls-info-container");
|
||||
rows.AddRange(releaseRowResults);
|
||||
|
|
Loading…
Reference in a new issue