From 8744fd3fa118308713038d836644f6f2851b366d Mon Sep 17 00:00:00 2001 From: Diego Heras Date: Sat, 1 Feb 2020 19:29:17 +0100 Subject: [PATCH] core: fix blackhole download for relative uris. resolves #5935 (#7057) --- src/Jackett.Server/Controllers/BlackholeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jackett.Server/Controllers/BlackholeController.cs b/src/Jackett.Server/Controllers/BlackholeController.cs index 8aa4c4b6f..7f58d481a 100644 --- a/src/Jackett.Server/Controllers/BlackholeController.cs +++ b/src/Jackett.Server/Controllers/BlackholeController.cs @@ -53,7 +53,7 @@ namespace Jackett.Server.Controllers var fileExtension = ".torrent"; byte[] downloadBytes; - if (remoteFile.Scheme == "magnet") + if (remoteFile.OriginalString.StartsWith("magnet")) downloadBytes = Encoding.UTF8.GetBytes(remoteFile.OriginalString); else downloadBytes = await indexer.Download(remoteFile);