mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
GimmePeers: add relogin
This commit is contained in:
@@ -131,6 +131,13 @@ namespace Jackett.Common.Indexers
|
|||||||
private async Task ProcessPage(List<ReleaseInfo> releases, string searchUrl)
|
private async Task ProcessPage(List<ReleaseInfo> releases, string searchUrl)
|
||||||
{
|
{
|
||||||
var response = await RequestStringWithCookiesAndRetry(searchUrl, null, BrowseUrl);
|
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;
|
var results = response.Content;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user