GimmePeers: add relogin

This commit is contained in:
kaso17
2018-12-02 09:06:40 +01:00
parent c0b9bb64f8
commit bcfccd83d4

View File

@@ -131,6 +131,13 @@ namespace Jackett.Common.Indexers
private async Task ProcessPage(List<ReleaseInfo> releases, string searchUrl)
{
var response = await RequestStringWithCookiesAndRetry(searchUrl, null, BrowseUrl);
if (response.IsRedirect)
{
// re login
await ApplyConfiguration(null);
response = await RequestStringWithCookiesAndRetry(searchUrl, null, BrowseUrl);
}
var results = response.Content;
try
{