AnimeBytes: Fix DL links

This commit is contained in:
kaso17 2017-01-16 12:23:15 +01:00
parent 29d3930baa
commit 9b0a03d002
1 changed files with 1 additions and 15 deletions

View File

@ -319,7 +319,7 @@ namespace Jackett.Indexers
var infoLink = links.Get(1);
release.Comments = new Uri(SiteLink + infoLink.Attributes.GetAttribute("href"));
release.Guid = new Uri(SiteLink + infoLink.Attributes.GetAttribute("href") + "&nh=" + StringUtil.Hash(title)); // Sonarr should dedupe on this url - allow a url per name.
release.Link = new Uri(downloadLink.Attributes.GetAttribute("href"), UriKind.Relative);
release.Link = new Uri(downloadLink.Attributes.GetAttribute("href"));
string category = null;
if (searchType == SearchType.Video)
@ -460,19 +460,5 @@ namespace Jackett.Indexers
return releases.Select(s => (ReleaseInfo)s.Clone());
}
public async override Task<byte[]> Download(Uri link)
{
// The urls for this tracker are quite long so append the domain after the incoming request.
var response = await webclient.GetBytes(new Utils.Clients.WebRequest()
{
Url = SiteLink + link.ToString(),
Cookies = CookieHeader,
Encoding = Encoding
});
return response.Content;
}
}
}