mirror of
https://github.com/Sonarr/Sonarr
synced 2025-12-06 08:28:37 +01:00
Follow redirects for usenet grabs on non-prod builds
This commit is contained in:
parent
103b1335b9
commit
1cdca8ef3e
1 changed files with 1 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ public override async Task<string> Download(RemoteEpisode remoteEpisode, IIndexe
|
|||
{
|
||||
var request = indexer?.GetDownloadRequest(url) ?? new HttpRequest(url);
|
||||
request.RateLimitKey = remoteEpisode?.Release?.IndexerId.ToString();
|
||||
request.AllowAutoRedirect = true;
|
||||
|
||||
var response = await RetryStrategy
|
||||
.ExecuteAsync(static async (state, _) => await state._httpClient.GetAsync(state.request), (_httpClient, request))
|
||||
|
|
|
|||
Loading…
Reference in a new issue