mirror of
https://github.com/Lidarr/Lidarr
synced 2026-04-21 04:02:05 +02:00
Follow redirects for usenet grabs on non-prod builds
(cherry picked from commit 1cdca8ef3e47e19c9264db6b322161b615b20294)
This commit is contained in:
parent
1bcb82eed0
commit
086a451dff
1 changed files with 1 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ public override async Task<string> Download(RemoteAlbum remoteAlbum, IIndexer in
|
|||
{
|
||||
var request = indexer?.GetDownloadRequest(url) ?? new HttpRequest(url);
|
||||
request.RateLimitKey = remoteAlbum?.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