Avistaz family: add auto re-login

This commit is contained in:
kaso17
2017-03-07 13:46:43 +01:00
parent 13dc47f0ee
commit c6e580ac7f

View File

@@ -90,6 +90,12 @@ namespace Jackett.Indexers
var episodeSearchUrl = string.Format(SearchUrl, category, HttpUtility.UrlEncode(query.GetQueryString()));
var response = await RequestStringWithCookiesAndRetry(episodeSearchUrl);
if (response.IsRedirect)
{
// re-login
await ApplyConfiguration(null);
response = await RequestStringWithCookiesAndRetry(episodeSearchUrl);
}
try
{