speedCD: update categories and correct title link. resolves #

This commit is contained in:
Garfield69 2019-02-12 12:58:20 +13:00
parent e7edd1734b
commit 0ac587d97b
1 changed files with 33 additions and 29 deletions

View File

@ -45,34 +45,37 @@ namespace Jackett.Common.Indexers
TorznabCaps.SupportsImdbSearch = true; TorznabCaps.SupportsImdbSearch = true;
AddCategoryMapping("1", TorznabCatType.MoviesOther); AddCategoryMapping(1, TorznabCatType.MoviesOther, "Movies/XviD");
AddCategoryMapping("42", TorznabCatType.Movies); AddCategoryMapping(42, TorznabCatType.Movies, "Movies/Packs");
AddCategoryMapping("32", TorznabCatType.Movies); AddCategoryMapping(32, TorznabCatType.Movies, "Movies/Kids");
AddCategoryMapping("43", TorznabCatType.MoviesHD); AddCategoryMapping(43, TorznabCatType.MoviesHD, "Movies/HD");
AddCategoryMapping("47", TorznabCatType.Movies); AddCategoryMapping(47, TorznabCatType.Movies, "Movies/DiVERSiTY");
AddCategoryMapping("28", TorznabCatType.MoviesBluRay); AddCategoryMapping(28, TorznabCatType.MoviesBluRay, "Movies/B-Ray");
AddCategoryMapping("48", TorznabCatType.Movies3D); AddCategoryMapping(48, TorznabCatType.Movies3D, "Movies/3D");
AddCategoryMapping("40", TorznabCatType.MoviesDVD); AddCategoryMapping(40, TorznabCatType.MoviesDVD, "Movies/DVD-R");
AddCategoryMapping("49", TorznabCatType.TVHD); AddCategoryMapping(56, TorznabCatType.Movies, "Movies/Anime");
AddCategoryMapping("50", TorznabCatType.TVSport); AddCategoryMapping(50, TorznabCatType.TVSport, "TV/Sports");
AddCategoryMapping("52", TorznabCatType.TVHD); AddCategoryMapping(52, TorznabCatType.TVHD, "TV/B-Ray");
AddCategoryMapping("53", TorznabCatType.TVSD); AddCategoryMapping(53, TorznabCatType.TVSD, "TV/DVD-R");
AddCategoryMapping("41", TorznabCatType.TV); AddCategoryMapping(41, TorznabCatType.TV, "TV/Packs");
AddCategoryMapping("55", TorznabCatType.TV); AddCategoryMapping(55, TorznabCatType.TV, "TV/Kids");
AddCategoryMapping("2", TorznabCatType.TVSD); AddCategoryMapping(57, TorznabCatType.TV, "TV/DiVERSiTY");
AddCategoryMapping("30", TorznabCatType.TVAnime); AddCategoryMapping(49, TorznabCatType.TVHD, "TV/HD");
AddCategoryMapping("25", TorznabCatType.PCISO); AddCategoryMapping(2, TorznabCatType.TVSD, "TV/Episodes");
AddCategoryMapping("39", TorznabCatType.ConsoleWii); AddCategoryMapping(30, TorznabCatType.TVAnime, "TV/Anime");
AddCategoryMapping("45", TorznabCatType.ConsolePS3); AddCategoryMapping(25, TorznabCatType.PCISO, "Games/PC ISO");
AddCategoryMapping("35", TorznabCatType.Console); AddCategoryMapping(39, TorznabCatType.ConsoleWii, "Games/Wii");
AddCategoryMapping("33", TorznabCatType.ConsoleXbox360); AddCategoryMapping(45, TorznabCatType.ConsolePS3, "Games/PS3");
AddCategoryMapping("46", TorznabCatType.PCPhoneOther); AddCategoryMapping(35, TorznabCatType.Console, "Games/Nintendo");
AddCategoryMapping("24", TorznabCatType.PC0day); AddCategoryMapping(33, TorznabCatType.ConsoleXbox360, "Games/XboX360");
AddCategoryMapping("51", TorznabCatType.PCMac); AddCategoryMapping(46, TorznabCatType.PCPhoneOther, "Mobile");
AddCategoryMapping("27", TorznabCatType.Books); AddCategoryMapping(24, TorznabCatType.PC0day, "Apps/0DAY");
AddCategoryMapping("26", TorznabCatType.Audio); AddCategoryMapping(51, TorznabCatType.PCMac, "Mac");
AddCategoryMapping("44", TorznabCatType.Audio); AddCategoryMapping(54, TorznabCatType.Books, "Educational");
AddCategoryMapping("29", TorznabCatType.AudioVideo); AddCategoryMapping(27, TorznabCatType.Books, "Books-Mags");
AddCategoryMapping(26, TorznabCatType.Audio, "Music/Audio");
AddCategoryMapping(44, TorznabCatType.Audio, "Music/Pack");
AddCategoryMapping(29, TorznabCatType.AudioVideo, "Music/Video");
} }
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson) public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
@ -152,6 +155,7 @@ namespace Jackett.Common.Indexers
string title = torrentData.Find("td[class='lft'] > div > a").First().Text().Trim(); string title = torrentData.Find("td[class='lft'] > div > a").First().Text().Trim();
Uri link = new Uri(SiteLink + torrentData.Find("img[title='Download']").First().Parent().Attr("href").Trim()); Uri link = new Uri(SiteLink + torrentData.Find("img[title='Download']").First().Parent().Attr("href").Trim());
Uri guid = link; Uri guid = link;
Uri comments = new Uri(SiteLink + torrentData.Find("td[class='lft'] > div > a").First().Attr("href").Trim());
long size = ReleaseInfo.GetBytes(cells.Elements.ElementAt(4).Cq().Text()); long size = ReleaseInfo.GetBytes(cells.Elements.ElementAt(4).Cq().Text());
int grabs = ParseUtil.CoerceInt(cells.Elements.ElementAt(5).Cq().Text()); int grabs = ParseUtil.CoerceInt(cells.Elements.ElementAt(5).Cq().Text());
int seeders = ParseUtil.CoerceInt(cells.Elements.ElementAt(6).Cq().Text()); int seeders = ParseUtil.CoerceInt(cells.Elements.ElementAt(6).Cq().Text());
@ -177,7 +181,7 @@ namespace Jackett.Common.Indexers
release.MinimumRatio = 1; release.MinimumRatio = 1;
release.MinimumSeedTime = 172800; release.MinimumSeedTime = 172800;
release.Category = MapTrackerCatToNewznab(category.ToString()); release.Category = MapTrackerCatToNewznab(category.ToString());
release.Comments = guid; release.Comments = comments;
if (torrentData.Find("span:contains(\"[Freeleech]\")").Any()) if (torrentData.Find("span:contains(\"[Freeleech]\")").Any())
release.DownloadVolumeFactor = 0; release.DownloadVolumeFactor = 0;