From 404b2caa63bfe52afbcaa046609450367042769a Mon Sep 17 00:00:00 2001 From: Diego Heras Date: Mon, 4 May 2020 00:48:42 +0200 Subject: [PATCH] bithdtv: add missing category. resolves #8511 (#8524) --- src/Jackett.Common/Indexers/BitHdtv.cs | 36 ++++++++++++-------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/src/Jackett.Common/Indexers/BitHdtv.cs b/src/Jackett.Common/Indexers/BitHdtv.cs index f56c41f28..b1ab86db3 100644 --- a/src/Jackett.Common/Indexers/BitHdtv.cs +++ b/src/Jackett.Common/Indexers/BitHdtv.cs @@ -23,27 +23,22 @@ namespace Jackett.Common.Indexers private string TakeLoginUrl => SiteLink + "takelogin.php"; private string SearchUrl => SiteLink + "torrents.php"; - private new ConfigurationDataRecaptchaLogin configData - { - get => (ConfigurationDataRecaptchaLogin)base.configData; - set => base.configData = value; - } + private new ConfigurationDataRecaptchaLogin configData => (ConfigurationDataRecaptchaLogin)base.configData; - public BitHdtv(IIndexerConfigurationService configService, WebClient w, Logger l, IProtectionService ps) : - base( - name: "BIT-HDTV", - description: "BIT-HDTV - Home of High Definition", - link: "https://www.bit-hdtv.com/", - caps: new TorznabCapabilities - { - SupportsImdbMovieSearch = true - // SupportsImdbTVSearch = true (supported by the site but disabled due to #8107) - }, - configService: configService, - client: w, - logger: l, - p: ps, - configData: new ConfigurationDataRecaptchaLogin("For best results, change the 'Torrents per page' setting to 100 in your profile.")) + public BitHdtv(IIndexerConfigurationService configService, WebClient w, Logger l, IProtectionService ps) + : base("BIT-HDTV", + description: "BIT-HDTV - Home of High Definition", + link: "https://www.bit-hdtv.com/", + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + // SupportsImdbTVSearch = true (supported by the site but disabled due to #8107) + }, + configService: configService, + client: w, + logger: l, + p: ps, + configData: new ConfigurationDataRecaptchaLogin("For best results, change the 'Torrents per page' setting to 100 in your profile.")) { Encoding = Encoding.GetEncoding("iso-8859-1"); Language = "en-us"; @@ -55,6 +50,7 @@ namespace Jackett.Common.Indexers AddCategoryMapping(6, TorznabCatType.AudioLossless); // HQ Audio AddCategoryMapping(7, TorznabCatType.Movies); // Movies AddCategoryMapping(8, TorznabCatType.AudioVideo); // Music Videos + AddCategoryMapping(9, TorznabCatType.Other); // Other AddCategoryMapping(5, TorznabCatType.TVSport); // Sports AddCategoryMapping(10, TorznabCatType.TV); // TV AddCategoryMapping(12, TorznabCatType.TV); // TV/Seasonpack