mirror of https://github.com/Jackett/Jackett
myAmity: auto re-login
This commit is contained in:
parent
4bf97c8380
commit
732878a64f
|
@ -113,6 +113,13 @@ namespace Jackett.Indexers
|
||||||
searchUrl += "?" + queryCollection.GetQueryString();
|
searchUrl += "?" + queryCollection.GetQueryString();
|
||||||
|
|
||||||
var response = await RequestStringWithCookies(searchUrl);
|
var response = await RequestStringWithCookies(searchUrl);
|
||||||
|
if (response.IsRedirect)
|
||||||
|
{
|
||||||
|
// re-login
|
||||||
|
await ApplyConfiguration(null);
|
||||||
|
response = await RequestStringWithCookies(searchUrl);
|
||||||
|
}
|
||||||
|
|
||||||
var results = response.Content;
|
var results = response.Content;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue