Follow redirects for usenet grabs on non-prod builds

(cherry picked from commit 1cdca8ef3e47e19c9264db6b322161b615b20294)
This commit is contained in:
Bogdan 2025-05-25 20:04:55 +03:00
parent 1bcb82eed0
commit 086a451dff

View file

@ -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))