mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 15:21:06 +00:00
Fixed result category mapping for bB and BeyondHD
This commit is contained in:
parent
18ebf3a95d
commit
2766976c47
2 changed files with 6 additions and 3 deletions
|
@ -51,9 +51,9 @@ namespace Jackett.Indexers
|
|||
AddCategoryMapping(6, TorznabCatType.Comic);
|
||||
AddCategoryMapping(8, TorznabCatType.Anime);
|
||||
AddCategoryMapping(9, TorznabCatType.Movies);
|
||||
AddCategoryMapping(10, TorznabCatType.TV);
|
||||
AddCategoryMapping(10, TorznabCatType.TVHD);
|
||||
AddCategoryMapping(10, TorznabCatType.TVSD);
|
||||
AddCategoryMapping(10, TorznabCatType.TV);
|
||||
AddCategoryMapping(11, TorznabCatType.PCGames);
|
||||
}
|
||||
|
||||
|
@ -118,6 +118,9 @@ namespace Jackett.Indexers
|
|||
release.MinimumRatio = 1;
|
||||
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 linkStr = qLink.Attr("href");
|
||||
release.Title = qLink.Text();
|
||||
|
|
|
@ -118,8 +118,8 @@ namespace Jackett.Indexers
|
|||
|
||||
var qRow = row.Cq();
|
||||
|
||||
|
||||
release.Category = MapTrackerCatToNewznab(row.ChildElements.ElementAt(0).FirstElementChild.GetAttribute("href").Split('?')[1]);
|
||||
var catStr = row.ChildElements.ElementAt(0).FirstElementChild.GetAttribute("href").Split('=')[1];
|
||||
release.Category = MapTrackerCatToNewznab(catStr);
|
||||
|
||||
var qLink = row.ChildElements.ElementAt(2).FirstChild.Cq();
|
||||
release.Link = new Uri(SiteLink + "/" + qLink.Attr("href"));
|
||||
|
|
Loading…
Reference in a new issue