Fixed result category mapping for bB and BeyondHD

This commit is contained in:
unknown 2015-08-10 20:14:00 -06:00
parent 18ebf3a95d
commit 2766976c47
2 changed files with 6 additions and 3 deletions

View File

@ -51,9 +51,9 @@ namespace Jackett.Indexers
AddCategoryMapping(6, TorznabCatType.Comic); AddCategoryMapping(6, TorznabCatType.Comic);
AddCategoryMapping(8, TorznabCatType.Anime); AddCategoryMapping(8, TorznabCatType.Anime);
AddCategoryMapping(9, TorznabCatType.Movies); AddCategoryMapping(9, TorznabCatType.Movies);
AddCategoryMapping(10, TorznabCatType.TV);
AddCategoryMapping(10, TorznabCatType.TVHD); AddCategoryMapping(10, TorznabCatType.TVHD);
AddCategoryMapping(10, TorznabCatType.TVSD); AddCategoryMapping(10, TorznabCatType.TVSD);
AddCategoryMapping(10, TorznabCatType.TV);
AddCategoryMapping(11, TorznabCatType.PCGames); AddCategoryMapping(11, TorznabCatType.PCGames);
} }
@ -118,6 +118,9 @@ namespace Jackett.Indexers
release.MinimumRatio = 1; release.MinimumRatio = 1;
release.MinimumSeedTime = 172800; release.MinimumSeedTime = 172800;
var catStr = row.ChildElements.ElementAt(0).FirstElementChild.GetAttribute("href").Split(new char[] { '[', ']' })[1];
release.Category = MapTrackerCatToNewznab(catStr);
var qLink = row.ChildElements.ElementAt(1).Cq().Children("a")[0].Cq(); var qLink = row.ChildElements.ElementAt(1).Cq().Children("a")[0].Cq();
var linkStr = qLink.Attr("href"); var linkStr = qLink.Attr("href");
release.Title = qLink.Text(); release.Title = qLink.Text();

View File

@ -118,8 +118,8 @@ namespace Jackett.Indexers
var qRow = row.Cq(); var qRow = row.Cq();
var catStr = row.ChildElements.ElementAt(0).FirstElementChild.GetAttribute("href").Split('=')[1];
release.Category = MapTrackerCatToNewznab(row.ChildElements.ElementAt(0).FirstElementChild.GetAttribute("href").Split('?')[1]); release.Category = MapTrackerCatToNewznab(catStr);
var qLink = row.ChildElements.ElementAt(2).FirstChild.Cq(); var qLink = row.ChildElements.ElementAt(2).FirstChild.Cq();
release.Link = new Uri(SiteLink + "/" + qLink.Attr("href")); release.Link = new Uri(SiteLink + "/" + qLink.Attr("href"));