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

Generalized RateLimit logic to all indexers based on indexer id

This commit is contained in:
Taloth Saldono
2021-02-08 00:09:59 +01:00
parent a85979c2f6
commit d898f55660
9 changed files with 73 additions and 63 deletions
@@ -128,6 +128,7 @@ namespace NzbDrone.Core.Download
try
{
var request = new HttpRequest(torrentUrl);
request.RateLimitKey = remoteEpisode?.Release?.IndexerId.ToString();
request.Headers.Accept = "application/x-bittorrent";
request.AllowAutoRedirect = false;