mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-20 20:00:48 +02:00
Fixed: Handling of magnet links for all Indexers (RARBG fix)
This commit is contained in:
parent
6583f45c41
commit
a98ffab421
1 changed files with 6 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using FluentValidation.Results;
|
||||
using NLog;
|
||||
|
|
@ -101,6 +102,11 @@ public override async Task<byte[]> Download(Uri link)
|
|||
{
|
||||
Cookies = GetCookies();
|
||||
|
||||
if (link.Scheme == "magnet")
|
||||
{
|
||||
return Encoding.UTF8.GetBytes(link.OriginalString);
|
||||
}
|
||||
|
||||
var requestBuilder = new HttpRequestBuilder(link.AbsoluteUri);
|
||||
|
||||
if (Cookies != null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue