mirror of https://github.com/Jackett/Jackett
Indexer Download: UrlEncode some special chars
This commit is contained in:
parent
2b77ca4322
commit
7835da2ea8
|
@ -294,7 +294,12 @@ namespace Jackett.Indexers
|
|||
|
||||
public async virtual Task<byte[]> Download(Uri link)
|
||||
{
|
||||
var response = await RequestBytesWithCookiesAndRetry(link.ToString());
|
||||
// do some extra escaping, needed for HD-Torrents
|
||||
var requestLink = link.ToString()
|
||||
.Replace("(", "%28")
|
||||
.Replace(")", "%29")
|
||||
.Replace("'", "%27");
|
||||
var response = await RequestBytesWithCookiesAndRetry(requestLink);
|
||||
if (response.Status != System.Net.HttpStatusCode.OK && response.Status != System.Net.HttpStatusCode.Continue && response.Status != System.Net.HttpStatusCode.PartialContent)
|
||||
{
|
||||
if(response.Content != null)
|
||||
|
|
Loading…
Reference in New Issue