diff --git a/src/Jackett.Common/Indexers/Definitions/Abstract/GazelleTracker.cs b/src/Jackett.Common/Indexers/Definitions/Abstract/GazelleTracker.cs index 6a44e17ff..5084cbf3e 100644 --- a/src/Jackett.Common/Indexers/Definitions/Abstract/GazelleTracker.cs +++ b/src/Jackett.Common/Indexers/Definitions/Abstract/GazelleTracker.cs @@ -250,8 +250,9 @@ namespace Jackett.Common.Indexers.Definitions.Abstract var headers = apiKey != null ? new Dictionary { [AuthorizationName] = string.Format(AuthorizationFormat, apiKey.Value) } : null; var response = await RequestWithCookiesAndRetryAsync(searchUrl, headers: headers); + // we get a redirect in html pages and an error message in json response (api) - if (response.IsRedirect && !useApiKey) + if (response.IsRedirect && !useApiKey && configData.CookieItem.Value.IsNullOrWhiteSpace()) { // re-login only if API key is not in use. await ApplyConfiguration(null);