From 823e06b84ede46f7bf4b3c8afa9a33971e55c7e8 Mon Sep 17 00:00:00 2001 From: chibidev Date: Sun, 14 May 2017 18:48:55 +0200 Subject: [PATCH] Adds additional parsing so that it sets the key parameter as well (#1363) - Fixes Jackett/Jackett#1357 - Fixes Jackett/Jackett#1360 --- src/Jackett/Indexers/NCore.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Jackett/Indexers/NCore.cs b/src/Jackett/Indexers/NCore.cs index 705f91084..bd8feacab 100644 --- a/src/Jackett/Indexers/NCore.cs +++ b/src/Jackett/Indexers/NCore.cs @@ -157,6 +157,8 @@ namespace Jackett.Indexers { CQ qRow = row.Cq(); + var key = dom ["link[rel=alternate]"].First().Attr("href").Split('=').Last(); + release = new ReleaseInfo(); var torrentTxt = qRow.Find(".torrent_txt, .torrent_txt2").Find("a").Get(0); //if (torrentTxt == null) continue; @@ -170,7 +172,7 @@ namespace Jackett.Indexers string downloadLink = SiteLink + torrentTxt.GetAttribute("href"); string downloadId = downloadLink.Substring(downloadLink.IndexOf("&id=") + 4); - release.Link = new Uri(SiteLink.ToString() + "torrents.php?action=download&id=" + downloadId); + release.Link = new Uri(SiteLink.ToString() + "torrents.php?action=download&id=" + downloadId + "&key=" + key); release.Comments = new Uri(SiteLink.ToString() + "torrents.php?action=details&id=" + downloadId); release.Guid = new Uri(release.Comments.ToString() + "#comments"); ; release.Seeders = ParseUtil.CoerceInt(qRow.Find(".box_s2").Find("a").First().Text());