Blackhole: Pull in fix magnet links

f3290800d8
This commit is contained in:
flightlevel
2018-06-10 21:54:12 +10:00
parent 3d85e751b7
commit 4ca6676be0
2 changed files with 8 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ namespace Jackett.Server.Services
public Uri ConvertToProxyLink(Uri link, string serverUrl, string indexerId, string action = "dl", string file = "t")
{
if (link == null || (link.IsAbsoluteUri && link.Scheme == "magnet"))
if (link == null || (link.IsAbsoluteUri && link.Scheme == "magnet" && action != "bh")) // no need to convert a magnet link to a proxy link unless it's a blackhole link
return link;
var encryptedLink = _protectionService.Protect(link.ToString());