From 76f01273d3b0b6b28c617e1270d4dbfef5bc4d58 Mon Sep 17 00:00:00 2001 From: d2dyno Date: Fri, 26 Aug 2016 04:22:02 -0400 Subject: [PATCH] HDSpace category mappings (#469) * HDSpace category mappings Add category mappings for HDSpace. * Fix derp Remove plus signs (from sloppy copy) and extra comas. * Fix typo and comma --- src/Jackett/Indexers/HDSpace.cs | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/src/Jackett/Indexers/HDSpace.cs b/src/Jackett/Indexers/HDSpace.cs index cfb4f57ee..700a69a87 100644 --- a/src/Jackett/Indexers/HDSpace.cs +++ b/src/Jackett/Indexers/HDSpace.cs @@ -39,7 +39,36 @@ namespace Jackett.Indexers p: ps, configData: new ConfigurationDataBasicLogin()) { - } + AddCategoryMapping(15, TorznabCatType.MoviesBluRay); // Movie / Blu-ray + AddMultiCategoryMapping(TorznabCatType.MoviesHD, + 19, // Movie / 1080p + 41, // Movie / 4K UHD + 18, // Movie / 720p + 40, // Movie / Remux + 16 // Movie / HD-DVD + ); + + AddMultiCategoryMapping(TorznabCatType.TVHD, + 21, // TV Show / 720p HDTV + 22 // TV Show / 1080p HDTV + ); + + AddCategoryMapping(30, TorznabCatType.AudioLossless); // Music / Lossless + AddCategoryMapping(31, TorznabCatType.AudioVideo); // Music / Videos + + AddMultiCategoryMapping(TorznabCatType.TVDocumentary, + 24, // TV Show / Documentary / 720p + 25 // TV Show / Documentary / 1080p + ); + + AddMultiCategoryMapping(TorznabCatType.XXX, + 33, // XXX / 720p + 34 // XXX / 1080p + ); + + AddCategoryMapping("37", TorznabCatType.PC); + AddCategoryMapping("38", TorznabCatType.Other); + } public async Task ApplyConfiguration(JToken configJson) {