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
@@ -127,7 +127,7 @@ namespace NzbDrone.Core.Download
try
{
var request = indexer.GetDownloadRequest(torrentUrl);
var request = indexer?.GetDownloadRequest(torrentUrl) ?? new HttpRequest(torrentUrl);
request.RateLimitKey = remoteBook?.Release?.IndexerId.ToString();
request.Headers.Accept = "application/x-bittorrent";
request.AllowAutoRedirect = false;