mirror of
https://github.com/Jackett/Jackett
synced 2025-03-13 07:33:12 +00:00
assorted c#: fix configuration of several indexers (#10476)
The link could not be changed
This commit is contained in:
parent
69125add3e
commit
a1567a94f4
10 changed files with 10 additions and 12 deletions
|
@ -128,7 +128,7 @@ namespace Jackett.Common.Indexers
|
|||
IProtectionService ps = null;
|
||||
if (useProtectionService)
|
||||
ps = protectionService;
|
||||
configData.LoadValuesFromJson(jsonConfig, ps);
|
||||
configData.LoadConfigDataValuesFromJson(jsonConfig, ps);
|
||||
if (string.IsNullOrWhiteSpace(configData.SiteLink.Value))
|
||||
{
|
||||
configData.SiteLink.Value = DefaultSiteLink;
|
||||
|
|
|
@ -90,7 +90,7 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
||||
{
|
||||
configData.LoadValuesFromJson(configJson);
|
||||
LoadValuesFromJson(configJson);
|
||||
var releases = await PerformQuery(new TorznabQuery());
|
||||
|
||||
await ConfigureIfOK(string.Empty, releases.Any(), () =>
|
||||
|
|
|
@ -159,7 +159,7 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
||||
{
|
||||
configData.LoadValuesFromJson(configJson);
|
||||
LoadValuesFromJson(configJson);
|
||||
|
||||
var pairs = new Dictionary<string, string>
|
||||
{
|
||||
|
|
|
@ -88,7 +88,7 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
||||
{
|
||||
configData.LoadValuesFromJson(configJson);
|
||||
LoadValuesFromJson(configJson);
|
||||
var releases = await PerformQuery(new TorznabQuery());
|
||||
|
||||
await ConfigureIfOK(string.Empty, releases.Any(), () =>
|
||||
|
|
|
@ -94,7 +94,7 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
||||
{
|
||||
configData.LoadValuesFromJson(configJson);
|
||||
LoadValuesFromJson(configJson);
|
||||
|
||||
var pairs = new Dictionary<string, string>
|
||||
{
|
||||
|
|
|
@ -57,7 +57,7 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
||||
{
|
||||
configData.LoadValuesFromJson(configJson);
|
||||
LoadValuesFromJson(configJson);
|
||||
var releases = await PerformQuery(new TorznabQuery());
|
||||
|
||||
await ConfigureIfOK(string.Empty, releases.Any(),
|
||||
|
|
|
@ -112,7 +112,7 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
||||
{
|
||||
ConfigData.LoadValuesFromJson(configJson);
|
||||
LoadValuesFromJson(configJson);
|
||||
var releases = await PerformQuery(new TorznabQuery());
|
||||
|
||||
await ConfigureIfOK(
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
||||
{
|
||||
configData.LoadValuesFromJson(configJson);
|
||||
LoadValuesFromJson(configJson);
|
||||
var releases = await PerformQuery(new TorznabQuery());
|
||||
|
||||
await ConfigureIfOK(string.Empty, releases.Any(),
|
||||
|
|
|
@ -66,7 +66,7 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
||||
{
|
||||
configData.LoadValuesFromJson(configJson);
|
||||
LoadValuesFromJson(configJson);
|
||||
var releases = await PerformQuery(new TorznabQuery());
|
||||
|
||||
await ConfigureIfOK(string.Empty, releases.Count() > 0,
|
||||
|
|
|
@ -32,9 +32,7 @@ namespace Jackett.Common.Models.IndexerConfig
|
|||
|
||||
}
|
||||
|
||||
public ConfigurationData(JToken json, IProtectionService ps) => LoadValuesFromJson(json, ps);
|
||||
|
||||
public void LoadValuesFromJson(JToken json, IProtectionService ps = null)
|
||||
public void LoadConfigDataValuesFromJson(JToken json, IProtectionService ps = null)
|
||||
{
|
||||
if (json == null)
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue