Fix downloading releases without an indexer

(cherry picked from commit ca8b26138e3ebd793cc1a5fd51522ce3eda8a2e1)

Closes #2426
This commit is contained in:
Bogdan
2023-05-01 20:05:52 +03:00
parent db7bb14491
commit bea61edb4e
3 changed files with 9 additions and 3 deletions
@@ -44,7 +44,7 @@ namespace NzbDrone.Core.Download
try
{
var request = indexer.GetDownloadRequest(url);
var request = indexer?.GetDownloadRequest(url) ?? new HttpRequest(url);
request.RateLimitKey = remoteBook?.Release?.IndexerId.ToString();
nzbData = _httpClient.Get(request).ResponseData;