mirror of
https://github.com/Jackett/Jackett.git
synced 2025-12-26 07:35:26 +01:00
Adds additional parsing so that it sets the key parameter as well (#1363)
- Fixes Jackett/Jackett#1357 - Fixes Jackett/Jackett#1360
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user