This commit is contained in:
kaso17 2016-12-06 18:25:32 +01:00
commit a908cec280
1 changed files with 28 additions and 2 deletions

View File

@ -87,6 +87,8 @@ namespace Jackett.Indexers
queryCollection.Add("search", searchString); queryCollection.Add("search", searchString);
} }
queryCollection.Add("incldead", "1");
var searchUrl = SearchUrl + queryCollection.GetQueryString(); var searchUrl = SearchUrl + queryCollection.GetQueryString();
var trackerCats = MapTorznabCapsToTrackers(query, mapChildrenCatsToParent: true); var trackerCats = MapTorznabCapsToTrackers(query, mapChildrenCatsToParent: true);
@ -108,8 +110,11 @@ namespace Jackett.Indexers
release.MinimumRatio = 1; release.MinimumRatio = 1;
release.MinimumSeedTime = 172800; release.MinimumSeedTime = 172800;
release.Title = qLink.Attr("title"); release.Title = qLink.Attr("title");
release.Description = release.Title; if (!query.MatchQueryStringAND(release.Title))
release.Guid = new Uri(SiteLink + qLink.Attr("href").TrimStart('/')); continue;
release.Files = ParseUtil.CoerceLong(qRow.Find("td:nth-child(4)").Text());
release.Grabs = ParseUtil.CoerceLong(qRow.Find("td:nth-child(8)").Text());
release.Guid = new Uri(qLink.Attr("href"));
release.Comments = release.Guid; release.Comments = release.Guid;
release.Link = new Uri(string.Format(DownloadUrl, qLink.Attr("href").Split('=')[1])); release.Link = new Uri(string.Format(DownloadUrl, qLink.Attr("href").Split('=')[1]));
@ -131,6 +136,27 @@ namespace Jackett.Indexers
release.Seeders = ParseUtil.CoerceInt(qRow.Children().ElementAt(8).Cq().Text().Trim()); release.Seeders = ParseUtil.CoerceInt(qRow.Children().ElementAt(8).Cq().Text().Trim());
release.Peers = ParseUtil.CoerceInt(qRow.Children().ElementAt(9).Cq().Text().Trim()) + release.Seeders; release.Peers = ParseUtil.CoerceInt(qRow.Children().ElementAt(9).Cq().Text().Trim()) + release.Seeders;
var bgcolor = qRow.Attr("bgcolor");
if (bgcolor == "#DDDDDD")
{
release.DownloadVolumeFactor = 1;
release.UploadVolumeFactor = 2;
}
else if (bgcolor == "#FFFF99")
{
release.DownloadVolumeFactor = 0;
release.UploadVolumeFactor = 1;
}
else if (bgcolor == "#CCFF99")
{
release.DownloadVolumeFactor = 0;
release.UploadVolumeFactor = 2;
}
else
{
release.DownloadVolumeFactor = 1;
release.UploadVolumeFactor = 1;
}
releases.Add(release); releases.Add(release);
} }
} }