diff --git a/src/Jackett.Common/Indexers/Definitions/DonTorrent.cs b/src/Jackett.Common/Indexers/Definitions/DonTorrent.cs index dd31e4f44..90b80db82 100644 --- a/src/Jackett.Common/Indexers/Definitions/DonTorrent.cs +++ b/src/Jackett.Common/Indexers/Definitions/DonTorrent.cs @@ -99,6 +99,8 @@ namespace Jackett.Common.Indexers.Definitions // avoid CLoudflare too many requests limiter webclient.requestDelay = 2.1; + webclient.AddTrustedCertificate(new Uri(SiteLink).Host, "21658BD5F953594852103C1728C09A676B932C4D"); // cloudflare + var matchWords = new BoolConfigurationItem("Match words in title") { Value = true }; configData.AddDynamic("MatchWords", matchWords); } @@ -129,11 +131,16 @@ namespace Jackett.Common.Indexers.Definitions return caps; } + public override void LoadValuesFromJson(JToken jsonConfig, bool useProtectionService = false) + { + base.LoadValuesFromJson(jsonConfig, useProtectionService); + + webclient?.AddTrustedCertificate(new Uri(SiteLink).Host, "21658BD5F953594852103C1728C09A676B932C4D"); // cloudflare + } public override async Task ApplyConfiguration(JToken configJson) { LoadValuesFromJson(configJson); - webclient.AddTrustedCertificate(new Uri(SiteLink).Host, "21658BD5F953594852103C1728C09A676B932C4D"); // cloudflare var releases = await PerformQuery(new TorznabQuery()); await ConfigureIfOK(string.Empty, releases.Any(), () =>