From a98ffab42163f9ba144e15c8b3728c789934d719 Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 20 Apr 2021 22:05:13 -0400 Subject: [PATCH] Fixed: Handling of magnet links for all Indexers (RARBG fix) --- src/NzbDrone.Core/Indexers/HttpIndexerBase.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs b/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs index fd6665637..dbee62d22 100644 --- a/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs +++ b/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net; +using System.Text; using System.Threading.Tasks; using FluentValidation.Results; using NLog; @@ -101,6 +102,11 @@ namespace NzbDrone.Core.Indexers { Cookies = GetCookies(); + if (link.Scheme == "magnet") + { + return Encoding.UTF8.GetBytes(link.OriginalString); + } + var requestBuilder = new HttpRequestBuilder(link.AbsoluteUri); if (Cookies != null)