mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
add support for magnet file download links
This commit is contained in:
@@ -286,6 +286,10 @@ namespace Jackett.Indexers
|
||||
|
||||
protected async Task<byte[]> Download(Uri link, RequestType method)
|
||||
{
|
||||
// return magnet link
|
||||
if (link.Scheme == "magnet")
|
||||
return Encoding.UTF8.GetBytes(link.OriginalString);
|
||||
|
||||
// do some extra escaping, needed for HD-Torrents
|
||||
var requestLink = link.ToString()
|
||||
.Replace("(", "%28")
|
||||
|
Reference in New Issue
Block a user