1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-25 22:46:31 -04:00

Fix downloading releases without an indexer

This commit is contained in:
Bogdan
2023-05-01 20:05:52 +03:00
committed by Qstick
parent b0773ae7e3
commit ca8b26138e
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 = remoteEpisode?.Release?.IndexerId.ToString();
request.Headers.Accept = "application/x-bittorrent";
request.AllowAutoRedirect = false;