mirror of
https://github.com/Lidarr/Lidarr
synced 2026-05-07 12:02:14 +02:00
Follow redirects for usenet grabs on non-prod builds
(cherry picked from commit 1cdca8ef3e47e19c9264db6b322161b615b20294)
This commit is contained in:
parent
be50f207d8
commit
f15572f3e4
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