1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-01 12:46:23 +00:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);