newpct: all now using maxi DL except 1 #11817

pctmix.com still using old DL for now
This commit is contained in:
Garfield69
2021-06-08 22:56:10 +12:00
parent e090a0ade6
commit cf620c2f30

View File

@@ -181,9 +181,9 @@ namespace Jackett.Common.Indexers
public override async Task<byte[]> Download(Uri linkParam)
{
var downloadLink = new Regex("maxitorrent.com").Match(linkParam.AbsoluteUri).Success
? linkParam.AbsoluteUri.Replace("/descargar/", "/descargar/torrent/")
: linkParam.AbsoluteUri;
var downloadLink = new Regex("pctmix.com").Match(linkParam.AbsoluteUri).Success
? linkParam.AbsoluteUri
: linkParam.AbsoluteUri.Replace("/descargar/", "/descargar/torrent/");
var results = await RequestWithCookiesAndRetryAsync(downloadLink);
var uriLink = ExtractDownloadUri(results.ContentString, downloadLink);