diff --git a/src/Jackett.Common/Indexers/LostFilm.cs b/src/Jackett.Common/Indexers/LostFilm.cs index d3a7329d7..ec9e91aab 100644 --- a/src/Jackett.Common/Indexers/LostFilm.cs +++ b/src/Jackett.Common/Indexers/LostFilm.cs @@ -65,7 +65,6 @@ namespace Jackett.Common.Indexers // https://www.lostfilm.tv/v_search.php?c=119&s=5&e=16 private string ReleaseUrl => SiteLink + "v_search.php"; - internal class TrackerUrlDetails { internal string seriesId { get; private set; } @@ -123,7 +122,6 @@ namespace Jackett.Common.Indexers cacheService: cs, configData: new ConfigurationDataCaptchaLogin()) { - webclient.AddTrustedCertificate(new Uri(SiteLink).Host, "34287FB53A58EC6AE590E7DD7E03C70C0263CADC"); // for *.tw expired 01/Apr/21 } private TorznabCapabilities SetCapabilities() @@ -146,6 +144,13 @@ namespace Jackett.Common.Indexers return caps; } + public override void LoadValuesFromJson(JToken jsonConfig, bool useProtectionService = false) + { + base.LoadValuesFromJson(jsonConfig, useProtectionService); + + webclient?.AddTrustedCertificate(new Uri(SiteLink).Host, "34287FB53A58EC6AE590E7DD7E03C70C0263CADC"); // for *.tw expired 01/Apr/21 + } + public override async Task GetConfigurationForSetup() { // looks like after some failed login attempts there's a captcha diff --git a/src/Jackett.Common/Indexers/SceneHD.cs b/src/Jackett.Common/Indexers/SceneHD.cs index f2b381f08..8d57e77ec 100644 --- a/src/Jackett.Common/Indexers/SceneHD.cs +++ b/src/Jackett.Common/Indexers/SceneHD.cs @@ -43,7 +43,6 @@ namespace Jackett.Common.Indexers configData: new ConfigurationDataPasskey("You can find the Passkey if you generate a RSS " + "feed link. It's the last parameter in the URL.")) { - webclient.AddTrustedCertificate(new Uri(SiteLink).Host, "3A4090096DD95D31306B14BFDD8F8C98F52A8EA8"); } private TorznabCapabilities SetCapabilities() @@ -80,6 +79,13 @@ namespace Jackett.Common.Indexers return caps; } + public override void LoadValuesFromJson(JToken jsonConfig, bool useProtectionService = false) + { + base.LoadValuesFromJson(jsonConfig, useProtectionService); + + webclient?.AddTrustedCertificate(new Uri(SiteLink).Host, "3A4090096DD95D31306B14BFDD8F8C98F52A8EA8"); + } + public override async Task ApplyConfiguration(JToken configJson) { LoadValuesFromJson(configJson);