diff --git a/src/Jackett.Common/Indexers/Abnormal.cs b/src/Jackett.Common/Indexers/Abnormal.cs index 11f517f3f..e4911adcc 100644 --- a/src/Jackett.Common/Indexers/Abnormal.cs +++ b/src/Jackett.Common/Indexers/Abnormal.cs @@ -65,9 +65,6 @@ namespace Jackett.Common.Indexers Encoding = Encoding.UTF8; Type = "private"; - // Clean capabilities - TorznabCaps.Categories.Clear(); - // Movies AddCategoryMapping("MOVIE|DVDR", TorznabCatType.MoviesDVD); // DVDR AddCategoryMapping("MOVIE|DVDRIP", TorznabCatType.MoviesSD); // DVDRIP diff --git a/src/Jackett.Common/Indexers/Abstract/CouchPotatoTracker.cs b/src/Jackett.Common/Indexers/Abstract/CouchPotatoTracker.cs index 68248921f..26106d865 100644 --- a/src/Jackett.Common/Indexers/Abstract/CouchPotatoTracker.cs +++ b/src/Jackett.Common/Indexers/Abstract/CouchPotatoTracker.cs @@ -27,7 +27,10 @@ namespace Jackett.Common.Indexers.Abstract : base(name: name, description: description, link: link, - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: client, logger: logger, @@ -36,7 +39,6 @@ namespace Jackett.Common.Indexers.Abstract ) { this.endpoint = endpoint; - TorznabCaps.SupportsImdbMovieSearch = true; } public override async Task ApplyConfiguration(JToken configJson) diff --git a/src/Jackett.Common/Indexers/AwesomeHD.cs b/src/Jackett.Common/Indexers/AwesomeHD.cs index 0837ddea0..296209190 100644 --- a/src/Jackett.Common/Indexers/AwesomeHD.cs +++ b/src/Jackett.Common/Indexers/AwesomeHD.cs @@ -24,7 +24,11 @@ namespace Jackett.Common.Indexers : base("Awesome-HD", description: "An HD tracker", link: "https://awesome-hd.me/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true, + SupportsImdbTVSearch = true + }, configService: configService, client: c, logger: l, @@ -35,9 +39,6 @@ namespace Jackett.Common.Indexers Language = "en-us"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - TorznabCaps.SupportsImdbTVSearch = true; - AddCategoryMapping(1, TorznabCatType.MoviesHD); AddCategoryMapping(2, TorznabCatType.TVHD); AddCategoryMapping(3, TorznabCatType.Audio); diff --git a/src/Jackett.Common/Indexers/BitHdtv.cs b/src/Jackett.Common/Indexers/BitHdtv.cs index 61797ee25..0743fa537 100644 --- a/src/Jackett.Common/Indexers/BitHdtv.cs +++ b/src/Jackett.Common/Indexers/BitHdtv.cs @@ -34,7 +34,11 @@ namespace Jackett.Common.Indexers name: "BIT-HDTV", description: "BIT-HDTV - Home of High Definition", link: "https://www.bit-hdtv.com/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true, + SupportsImdbTVSearch = true + }, configService: configService, client: w, logger: l, @@ -44,8 +48,7 @@ namespace Jackett.Common.Indexers Encoding = Encoding.GetEncoding("iso-8859-1"); Language = "en-us"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - TorznabCaps.SupportsImdbTVSearch = true; + AddCategoryMapping(1, TorznabCatType.TVAnime); // Anime AddCategoryMapping(2, TorznabCatType.MoviesBluRay); // Blu-ray AddCategoryMapping(4, TorznabCatType.TVDocumentary); // Documentaries diff --git a/src/Jackett.Common/Indexers/EliteTracker.cs b/src/Jackett.Common/Indexers/EliteTracker.cs index 212be3bf7..b2cce3b6f 100644 --- a/src/Jackett.Common/Indexers/EliteTracker.cs +++ b/src/Jackett.Common/Indexers/EliteTracker.cs @@ -27,7 +27,11 @@ namespace Jackett.Common.Indexers : base("Elite-Tracker", description: "French Torrent Tracker", link: "https://elite-tracker.net/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true, + SupportsImdbTVSearch = true + }, configService: configService, logger: logger, p: protectionService, @@ -39,9 +43,6 @@ namespace Jackett.Common.Indexers Language = "fr-fr"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - TorznabCaps.SupportsImdbTVSearch = true; - AddCategoryMapping(27, TorznabCatType.TVAnime, "Animation/Animes"); AddCategoryMapping(90, TorznabCatType.TVAnime, "Animes - 3D"); AddCategoryMapping(99, TorznabCatType.TVAnime, "Animes - 4K"); diff --git a/src/Jackett.Common/Indexers/FunFile.cs b/src/Jackett.Common/Indexers/FunFile.cs index 75cf4eb83..b0bb7de25 100644 --- a/src/Jackett.Common/Indexers/FunFile.cs +++ b/src/Jackett.Common/Indexers/FunFile.cs @@ -25,7 +25,11 @@ namespace Jackett.Common.Indexers : base("FunFile", description: "A general tracker", link: "https://www.funfile.org/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true, + SupportsImdbTVSearch = true + }, configService: configService, client: w, logger: l, @@ -36,9 +40,6 @@ namespace Jackett.Common.Indexers Language = "en-us"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - TorznabCaps.SupportsImdbTVSearch = true; - AddCategoryMapping(44, TorznabCatType.TVAnime); // Anime AddCategoryMapping(22, TorznabCatType.PC); // Applications AddCategoryMapping(43, TorznabCatType.AudioAudiobook); // Audio Books diff --git a/src/Jackett.Common/Indexers/Fuzer.cs b/src/Jackett.Common/Indexers/Fuzer.cs index 563be16ad..e36a8f7a4 100644 --- a/src/Jackett.Common/Indexers/Fuzer.cs +++ b/src/Jackett.Common/Indexers/Fuzer.cs @@ -37,6 +37,10 @@ namespace Jackett.Common.Indexers : base(name: "Fuzer", description: "Fuzer is a private torrent website with israeli torrents.", link: "https://www.fuzer.me/", + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: w, logger: l, @@ -46,8 +50,6 @@ namespace Jackett.Common.Indexers Encoding = Encoding.GetEncoding("windows-1255"); Language = "he-il"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - TorznabCaps.Categories.Clear(); // סרטים AddCategoryMapping(7, TorznabCatType.MoviesSD, "סרטים"); diff --git a/src/Jackett.Common/Indexers/HDBitsApi.cs b/src/Jackett.Common/Indexers/HDBitsApi.cs index e066710a9..1c29a4f76 100644 --- a/src/Jackett.Common/Indexers/HDBitsApi.cs +++ b/src/Jackett.Common/Indexers/HDBitsApi.cs @@ -27,7 +27,10 @@ namespace Jackett.Common.Indexers : base(name: "HDBits (API)", description: "The HighDefinition Bittorrent Community", link: "https://hdbits.org/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: wc, logger: l, @@ -37,7 +40,6 @@ namespace Jackett.Common.Indexers Encoding = Encoding.UTF8; Language = "en-us"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; AddCategoryMapping(6, TorznabCatType.Audio, "Audio Track"); AddCategoryMapping(3, TorznabCatType.TVDocumentary, "Documentary"); diff --git a/src/Jackett.Common/Indexers/HDTorrents.cs b/src/Jackett.Common/Indexers/HDTorrents.cs index fc76ca409..968bc6194 100644 --- a/src/Jackett.Common/Indexers/HDTorrents.cs +++ b/src/Jackett.Common/Indexers/HDTorrents.cs @@ -39,6 +39,11 @@ namespace Jackett.Common.Indexers : base(name: "HD-Torrents", description: "HD-Torrents is a private torrent website with HD torrents and strict rules on their content.", link: "https://hdts.ru/",// Of the accessible domains the .ru seems the most reliable. https://hdts.ru | https://hd-torrents.org | https://hd-torrents.net | https://hd-torrents.me + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true, + SupportsImdbTVSearch = true + }, configService: configService, client: w, logger: l, @@ -49,11 +54,6 @@ namespace Jackett.Common.Indexers Language = "en-us"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - TorznabCaps.SupportsImdbTVSearch = true; - - TorznabCaps.Categories.Clear(); - // Movie AddCategoryMapping("70", TorznabCatType.MoviesUHD, "Movie/UHD/Blu-Ray"); AddCategoryMapping("1", TorznabCatType.MoviesHD, "Movie/Blu-Ray"); diff --git a/src/Jackett.Common/Indexers/IPTorrents.cs b/src/Jackett.Common/Indexers/IPTorrents.cs index 0193775db..e45cc92e0 100644 --- a/src/Jackett.Common/Indexers/IPTorrents.cs +++ b/src/Jackett.Common/Indexers/IPTorrents.cs @@ -52,7 +52,10 @@ namespace Jackett.Common.Indexers : base(name: "IPTorrents", description: "Always a step ahead.", link: "https://iptorrents.com/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: wc, logger: l, @@ -63,8 +66,6 @@ namespace Jackett.Common.Indexers Language = "en-us"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - AddCategoryMapping(72, TorznabCatType.Movies, "Movies"); AddCategoryMapping(87, TorznabCatType.Movies3D, "Movie/3D"); AddCategoryMapping(77, TorznabCatType.MoviesSD, "Movie/480p"); diff --git a/src/Jackett.Common/Indexers/Norbits.cs b/src/Jackett.Common/Indexers/Norbits.cs index 80e11168c..00b08cc47 100644 --- a/src/Jackett.Common/Indexers/Norbits.cs +++ b/src/Jackett.Common/Indexers/Norbits.cs @@ -48,7 +48,10 @@ namespace Jackett.Common.Indexers name: "Norbits", description: "Norbits is a Norwegian Private site for MOVIES / TV / GENERAL", link: "https://norbits.net/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: w, logger: l, @@ -59,8 +62,6 @@ namespace Jackett.Common.Indexers Language = "nb-no"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - AddCategoryMapping("main_cat[]=1&sub2_cat[]=19", TorznabCatType.MoviesHD, "Filmer - HD-1080p/i"); AddCategoryMapping("main_cat[]=1&sub2_cat[]=20", TorznabCatType.MoviesHD, "Filmer - HD-720p"); AddCategoryMapping("main_cat[]=1&sub2_cat[]=22", TorznabCatType.MoviesSD, "Filmer - SD"); diff --git a/src/Jackett.Common/Indexers/Nordicbits.cs b/src/Jackett.Common/Indexers/Nordicbits.cs index 8c897b1cd..92b61e600 100644 --- a/src/Jackett.Common/Indexers/Nordicbits.cs +++ b/src/Jackett.Common/Indexers/Nordicbits.cs @@ -47,7 +47,10 @@ namespace Jackett.Common.Indexers name: "Nordicbits", description: "Nordicbits is a Danish Private site for MOVIES / TV / GENERAL", link: "https://nordicb.org/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: w, logger: l, @@ -58,8 +61,6 @@ namespace Jackett.Common.Indexers Language = "da-dk"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = false; - // Apps AddCategoryMapping("cat=63", TorznabCatType.PCPhoneAndroid, "APPS - Android"); AddCategoryMapping("cat=17", TorznabCatType.PC, "APPS - MAC"); diff --git a/src/Jackett.Common/Indexers/PassThePopcorn.cs b/src/Jackett.Common/Indexers/PassThePopcorn.cs index ea8d54f46..26730b7b8 100644 --- a/src/Jackett.Common/Indexers/PassThePopcorn.cs +++ b/src/Jackett.Common/Indexers/PassThePopcorn.cs @@ -30,7 +30,10 @@ namespace Jackett.Common.Indexers : base(name: "PassThePopcorn", description: "PassThePopcorn is a Private site for MOVIES / TV", link: "https://passthepopcorn.me/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: c, logger: l, @@ -43,8 +46,6 @@ namespace Jackett.Common.Indexers Language = "en-us"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - webclient.requestDelay = 2; // 0.5 requests per second AddCategoryMapping(1, TorznabCatType.Movies, "Feature Film"); diff --git a/src/Jackett.Common/Indexers/PiXELHD.cs b/src/Jackett.Common/Indexers/PiXELHD.cs index 1db22dc3c..e54829345 100644 --- a/src/Jackett.Common/Indexers/PiXELHD.cs +++ b/src/Jackett.Common/Indexers/PiXELHD.cs @@ -35,7 +35,10 @@ namespace Jackett.Common.Indexers : base(name: "PiXELHD", description: "PixelHD (PxHD) is a Private Torrent Tracker for HD .MP4 MOVIES / TV", link: "https://pixelhd.me/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, logger: logger, p: protectionService, @@ -47,8 +50,6 @@ namespace Jackett.Common.Indexers Language = "en-us"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - AddCategoryMapping(1, TorznabCatType.MoviesHD); } diff --git a/src/Jackett.Common/Indexers/PirateTheNet.cs b/src/Jackett.Common/Indexers/PirateTheNet.cs index 947af2685..88775cc22 100644 --- a/src/Jackett.Common/Indexers/PirateTheNet.cs +++ b/src/Jackett.Common/Indexers/PirateTheNet.cs @@ -33,7 +33,10 @@ namespace Jackett.Common.Indexers : base(name: "PirateTheNet", description: "A movie tracker", link: "http://piratethenet.org/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: w, logger: l, @@ -44,8 +47,6 @@ namespace Jackett.Common.Indexers Language = "en-us"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - configData.DisplayText.Value = "Only the results from the first search result page are shown, adjust your profile settings to show the maximum."; configData.DisplayText.Name = "Notice"; diff --git a/src/Jackett.Common/Indexers/PolishTracker.cs b/src/Jackett.Common/Indexers/PolishTracker.cs index 6afb89531..fce51555a 100644 --- a/src/Jackett.Common/Indexers/PolishTracker.cs +++ b/src/Jackett.Common/Indexers/PolishTracker.cs @@ -30,7 +30,11 @@ namespace Jackett.Common.Indexers : base("PolishTracker", description: "Polish Tracker is a POLISH Private site for 0DAY / MOVIES / GENERAL", link: "https://pte.nu/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true, + SupportsImdbTVSearch = true, + }, configService: configService, client: wc, logger: l, @@ -41,9 +45,6 @@ namespace Jackett.Common.Indexers Language = "pl-pl"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - TorznabCaps.SupportsImdbTVSearch = true; - AddCategoryMapping(1, TorznabCatType.PC0day, "0-Day"); AddCategoryMapping(3, TorznabCatType.PC0day, "Apps"); AddCategoryMapping(4, TorznabCatType.Console, "Consoles"); diff --git a/src/Jackett.Common/Indexers/Rarbg.cs b/src/Jackett.Common/Indexers/Rarbg.cs index 099e4620c..059f25076 100644 --- a/src/Jackett.Common/Indexers/Rarbg.cs +++ b/src/Jackett.Common/Indexers/Rarbg.cs @@ -50,7 +50,10 @@ namespace Jackett.Common.Indexers : base(name: "RARBG", description: "RARBG is a Public torrent site for MOVIES / TV / GENERAL", link: "https://rarbg.to/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: wc, logger: l, @@ -74,8 +77,6 @@ namespace Jackett.Common.Indexers provideTorrentLinkItem.Name = "Generate torrent download link additionally to magnet (not recommended due to DDoS protection)."; configData.AddDynamic("providetorrentlink", provideTorrentLinkItem); - TorznabCaps.SupportsImdbMovieSearch = true; - webclient.requestDelay = 2.1; // The api has a 1req/2s limit. AddCategoryMapping(4, TorznabCatType.XXX, "XXX (18+)"); diff --git a/src/Jackett.Common/Indexers/SceneHD.cs b/src/Jackett.Common/Indexers/SceneHD.cs index 191fd9593..021fbb310 100644 --- a/src/Jackett.Common/Indexers/SceneHD.cs +++ b/src/Jackett.Common/Indexers/SceneHD.cs @@ -30,7 +30,10 @@ namespace Jackett.Common.Indexers description: "SceneHD is Private site for HD TV / MOVIES", link: "https://scenehd.org/", configService: configService, - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, client: c, logger: l, p: ps, @@ -39,7 +42,7 @@ namespace Jackett.Common.Indexers Encoding = Encoding.UTF8; Language = "en-us"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; + webclient.EmulateBrowser = false; webclient.AddTrustedCertificate(new Uri(SiteLink).Host, "D948487DD52462F2D1E62B990D608051E3DE5AA6"); diff --git a/src/Jackett.Common/Indexers/SpeedCD.cs b/src/Jackett.Common/Indexers/SpeedCD.cs index 2432a1e80..e333e5555 100644 --- a/src/Jackett.Common/Indexers/SpeedCD.cs +++ b/src/Jackett.Common/Indexers/SpeedCD.cs @@ -30,7 +30,11 @@ namespace Jackett.Common.Indexers : base("Speed.cd", description: "Your home now!", link: "https://speed.cd/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true, + SupportsImdbTVSearch = true + }, configService: configService, client: wc, logger: l, @@ -44,9 +48,6 @@ namespace Jackett.Common.Indexers Language = "en-us"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - TorznabCaps.SupportsImdbTVSearch = true; - AddCategoryMapping(1, TorznabCatType.MoviesOther, "Movies/XviD"); AddCategoryMapping(42, TorznabCatType.Movies, "Movies/Packs"); AddCategoryMapping(32, TorznabCatType.Movies, "Movies/Kids"); diff --git a/src/Jackett.Common/Indexers/Superbits.cs b/src/Jackett.Common/Indexers/Superbits.cs index b3ae7baa6..31275c8df 100644 --- a/src/Jackett.Common/Indexers/Superbits.cs +++ b/src/Jackett.Common/Indexers/Superbits.cs @@ -31,7 +31,10 @@ namespace Jackett.Common.Indexers : base(name: "Superbits", description: "SuperBits is a SWEDISH Private Torrent Tracker for MOVIES / TV / GENERAL", link: "https://superbits.org/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: w, logger: l, @@ -42,8 +45,6 @@ namespace Jackett.Common.Indexers Language = "sv-sw"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - AddCategoryMapping(1, TorznabCatType.MoviesDVD, "DVD-R Swesub"); AddCategoryMapping(2, TorznabCatType.TV, "DVD-R TV"); AddCategoryMapping(3, TorznabCatType.BooksEbook, "eBok"); diff --git a/src/Jackett.Common/Indexers/TorrentSyndikat.cs b/src/Jackett.Common/Indexers/TorrentSyndikat.cs index 919de1fb4..848c0dde3 100644 --- a/src/Jackett.Common/Indexers/TorrentSyndikat.cs +++ b/src/Jackett.Common/Indexers/TorrentSyndikat.cs @@ -35,7 +35,10 @@ namespace Jackett.Common.Indexers : base(name: "Torrent-Syndikat", description: "A German general tracker", link: "https://torrent-syndikat.org/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: w, logger: l, @@ -46,8 +49,6 @@ namespace Jackett.Common.Indexers Language = "de-de"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - configData.DisplayText.Value = "Only the results from the first search result page are shown, adjust your profile settings to show the maximum."; configData.DisplayText.Name = "Notice"; diff --git a/src/Jackett.Common/Indexers/Torrentscsv.cs b/src/Jackett.Common/Indexers/Torrentscsv.cs index 7349a9dc8..129451532 100644 --- a/src/Jackett.Common/Indexers/Torrentscsv.cs +++ b/src/Jackett.Common/Indexers/Torrentscsv.cs @@ -29,7 +29,10 @@ namespace Jackett.Common.Indexers name: "Torrents.csv", description: "Torrents.csv is a self-hostable, open source torrent search engine and database", link: "https://torrents-csv.ml/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: wc, logger: l, @@ -49,10 +52,6 @@ namespace Jackett.Common.Indexers AddCategoryMapping(6000, TorznabCatType.XXX); AddCategoryMapping(7000, TorznabCatType.Other); AddCategoryMapping(8000, TorznabCatType.Books); - - TorznabCaps.SupportsImdbMovieSearch = false; - - webclient.requestDelay = 0; } public override async Task ApplyConfiguration(JToken configJson) diff --git a/src/Jackett.Common/Indexers/Xthor.cs b/src/Jackett.Common/Indexers/Xthor.cs index da2cced1c..77707a321 100644 --- a/src/Jackett.Common/Indexers/Xthor.cs +++ b/src/Jackett.Common/Indexers/Xthor.cs @@ -58,9 +58,6 @@ namespace Jackett.Common.Indexers Language = "fr-fr"; Type = "private"; - // Clean capabilities - TorznabCaps.Categories.Clear(); - // Movies AddCategoryMapping(118, TorznabCatType.MoviesBluRay, "UHD FULL BLURAY"); AddCategoryMapping(119, TorznabCatType.MoviesBluRay, "UHD BLURAY REMUX"); diff --git a/src/Jackett.Common/Indexers/digitalcore.cs b/src/Jackett.Common/Indexers/digitalcore.cs index 5b2cb018b..84db82bd2 100644 --- a/src/Jackett.Common/Indexers/digitalcore.cs +++ b/src/Jackett.Common/Indexers/digitalcore.cs @@ -32,7 +32,10 @@ namespace Jackett.Common.Indexers : base(name: "DigitalCore", description: "DigitalCore is a Private Torrent Tracker for MOVIES / TV / GENERAL", link: "https://digitalcore.club/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: w, logger: l, @@ -43,8 +46,6 @@ namespace Jackett.Common.Indexers Language = "en-us"; Type = "private"; - TorznabCaps.SupportsImdbMovieSearch = true; - AddCategoryMapping(1, TorznabCatType.MoviesDVD, "Movies/DVDR"); AddCategoryMapping(2, TorznabCatType.MoviesSD, "Movies/SD"); AddCategoryMapping(3, TorznabCatType.MoviesBluRay, "Movies/BluRay"); diff --git a/src/Jackett.Common/Indexers/pornolab.cs b/src/Jackett.Common/Indexers/pornolab.cs index 93723f495..222aaa46b 100644 --- a/src/Jackett.Common/Indexers/pornolab.cs +++ b/src/Jackett.Common/Indexers/pornolab.cs @@ -46,9 +46,6 @@ namespace Jackett.Common.Indexers Language = "ru-ru"; Type = "semi-private"; - // Clean capabilities - TorznabCaps.Categories.Clear(); - AddCategoryMapping(1768, TorznabCatType.XXX, "Эротические фильмы / Erotic Movies"); AddCategoryMapping(60, TorznabCatType.XXX, "Документальные фильмы / Documentary & Reality"); AddCategoryMapping(1644, TorznabCatType.XXX, "Нудизм-Натуризм / Nudity"); @@ -178,7 +175,6 @@ namespace Jackett.Common.Indexers AddCategoryMapping(1683, TorznabCatType.XXX, "Архив (общий)"); AddCategoryMapping(1688, TorznabCatType.XXX, "Гей-порно / Gay Forum"); AddCategoryMapping(1720, TorznabCatType.XXX, "Архив (Гей-порно)"); - } public override async Task GetConfigurationForSetup() diff --git a/src/Jackett.Common/Indexers/yts.cs b/src/Jackett.Common/Indexers/yts.cs index 00d99eea4..1933cd86e 100644 --- a/src/Jackett.Common/Indexers/yts.cs +++ b/src/Jackett.Common/Indexers/yts.cs @@ -35,7 +35,10 @@ namespace Jackett.Common.Indexers : base(name: "YTS", description: "YTS is a Public torrent site specialising in HD movies of small size", link: "https://yts.mx/", - caps: new TorznabCapabilities(), + caps: new TorznabCapabilities + { + SupportsImdbMovieSearch = true + }, configService: configService, client: wc, logger: l, @@ -46,12 +49,10 @@ namespace Jackett.Common.Indexers Language = "en-us"; Type = "public"; - TorznabCaps.SupportsImdbMovieSearch = true; - webclient.requestDelay = 2.5; // 0.5 requests per second (2 causes problems) // note: the API does not support searching with categories, so these are dummy ones for torznab compatibility - // we map these newznab cats with the returned quality value in the releases routine. + // we map these newznab cats with the returned quality value in the releases routine. AddCategoryMapping(45, TorznabCatType.MoviesHD, "Movies/x264/720p"); AddCategoryMapping(44, TorznabCatType.MoviesHD, "Movies/x264/1080p"); AddCategoryMapping(46, TorznabCatType.MoviesUHD, "Movies/x264/2160p"); // added for #7010