mirror of https://github.com/Jackett/Jackett
DigitalHive: automatically re-login
This commit is contained in:
parent
5599b05fb3
commit
b6accb02dc
|
@ -164,6 +164,12 @@ namespace Jackett.Indexers
|
|||
queryCollection.Add("blah", "0");
|
||||
|
||||
var results = await RequestStringWithCookiesAndRetry(searchUrl + "?" + queryCollection.GetQueryString());
|
||||
if (results.IsRedirect)
|
||||
{
|
||||
// re-login
|
||||
await ApplyConfiguration(null);
|
||||
results = await RequestStringWithCookiesAndRetry(searchUrl + "?" + queryCollection.GetQueryString());
|
||||
}
|
||||
try
|
||||
{
|
||||
releases.AddRange(contentToReleaseInfos(results.Content));
|
||||
|
|
Loading…
Reference in New Issue