From c60ae71bd9b61a5d609d8829bdfb324564527b76 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Mon, 29 Jan 2018 19:37:20 +0100 Subject: [PATCH] Revert "TorrentDay: update parser" This reverts commit 52ff0a6a1d046762b40849eb16e694a0e98b7886. --- src/Jackett.Common/Indexers/TorrentDay.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Jackett.Common/Indexers/TorrentDay.cs b/src/Jackett.Common/Indexers/TorrentDay.cs index 5df8bd762..4b2c9d7ed 100644 --- a/src/Jackett.Common/Indexers/TorrentDay.cs +++ b/src/Jackett.Common/Indexers/TorrentDay.cs @@ -208,7 +208,7 @@ namespace Jackett.Indexers try { CQ dom = results.Content; - var rows = dom["#torrentTable > tbody > tr[id^=tr]"]; + var rows = dom["#torrentTable > tbody > tr.browse"]; foreach (var row in rows) { CQ qRow = row.Cq(); @@ -216,14 +216,14 @@ namespace Jackett.Indexers release.MinimumRatio = 1; release.MinimumSeedTime = 172800; - release.Title = qRow.Find(".torrentNameInfo > a").First().Text(); + release.Title = qRow.Find(".torrentName").Text(); if ((query.ImdbID == null || !TorznabCaps.SupportsImdbSearch) && !query.MatchQueryStringAND(release.Title)) continue; - release.Guid = new Uri(SiteLink + qRow.Find(".torrentNameInfo > a").First().Attr("href")); + release.Guid = new Uri(SiteLink + qRow.Find(".torrentName").Attr("href")); release.Comments = release.Guid; - release.Link = new Uri(SiteLink + qRow.Find("a[href^=download.php]").Attr("href")); + release.Link = new Uri(SiteLink + qRow.Find(".dlLinksInfo > a").Attr("href")); var sizeStr = qRow.Find(".sizeInfo").Text(); release.Size = ReleaseInfo.GetBytes(sizeStr); @@ -239,7 +239,7 @@ namespace Jackett.Indexers release.Seeders = ParseUtil.CoerceInt(qRow.Find(".seedersInfo").Text()); release.Peers = ParseUtil.CoerceInt(qRow.Find(".leechersInfo").Text()) + release.Seeders; - var cat = qRow.Find("td:eq(0) a").First().Attr("id"); + var cat = qRow.Find("td:eq(0) a").First().Attr("href").Split('#')[0].Substring(15);//browse.php?cat=24 release.Category = MapTrackerCatToNewznab(cat); if (qRow.Find("span.flTags").Length >= 1)