From 9b0a03d0025e94694685661706e8c1f90996305b Mon Sep 17 00:00:00 2001 From: kaso17 Date: Mon, 16 Jan 2017 12:23:15 +0100 Subject: [PATCH] AnimeBytes: Fix DL links --- src/Jackett/Indexers/AnimeBytes.cs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/Jackett/Indexers/AnimeBytes.cs b/src/Jackett/Indexers/AnimeBytes.cs index c06cf4457..8bf2a81a6 100644 --- a/src/Jackett/Indexers/AnimeBytes.cs +++ b/src/Jackett/Indexers/AnimeBytes.cs @@ -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 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; - } } }