mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 13:57:11 -04:00
parent
28d09cd384
commit
122883053a
1 changed files with 5 additions and 5 deletions
|
@ -610,6 +610,11 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann
|
|||
Encoding = _encoding
|
||||
};
|
||||
|
||||
if (_definition.Followredirect)
|
||||
{
|
||||
requestBuilder.AllowAutoRedirect = true;
|
||||
}
|
||||
|
||||
Cookies = null;
|
||||
if (login.Cookies != null)
|
||||
{
|
||||
|
@ -627,11 +632,6 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann
|
|||
|
||||
Cookies = landingResult.GetCookies();
|
||||
|
||||
// Some sites have a temporary redirect before the login page, we need to process it.
|
||||
//if (_definition.Followredirect)
|
||||
//{
|
||||
// await FollowIfRedirect(landingResult, loginUrl.AbsoluteUri, overrideCookies: landingResult.Cookies, accumulateCookies: true);
|
||||
//}
|
||||
var htmlParser = new HtmlParser();
|
||||
landingResultDocument = htmlParser.ParseDocument(landingResult.Content);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue