myAmity: auto re-login

This commit is contained in:
kaso17 2017-02-03 13:05:24 +01:00
parent 4bf97c8380
commit 732878a64f
1 changed files with 7 additions and 0 deletions

View File

@ -113,6 +113,13 @@ namespace Jackett.Indexers
searchUrl += "?" + queryCollection.GetQueryString();
var response = await RequestStringWithCookies(searchUrl);
if (response.IsRedirect)
{
// re-login
await ApplyConfiguration(null);
response = await RequestStringWithCookies(searchUrl);
}
var results = response.Content;
try
{