core: fix blackhole download for relative uris. resolves #5935 (#7057)

This commit is contained in:
Diego Heras
2020-02-01 19:29:17 +01:00
committed by GitHub
parent 7d87b3287b
commit 8744fd3fa1

View File

@@ -53,7 +53,7 @@ namespace Jackett.Server.Controllers
var fileExtension = ".torrent"; var fileExtension = ".torrent";
byte[] downloadBytes; byte[] downloadBytes;
if (remoteFile.Scheme == "magnet") if (remoteFile.OriginalString.StartsWith("magnet"))
downloadBytes = Encoding.UTF8.GetBytes(remoteFile.OriginalString); downloadBytes = Encoding.UTF8.GetBytes(remoteFile.OriginalString);
else else
downloadBytes = await indexer.Download(remoteFile); downloadBytes = await indexer.Download(remoteFile);