Implemented indexer configuration result status to prevent double query test on some indexers

This commit is contained in:
unknown
2015-08-22 14:57:13 -06:00
parent 30ba1793c0
commit 748d85f32f
38 changed files with 142 additions and 63 deletions

View File

@@ -45,7 +45,7 @@ namespace Jackett.Indexers
{
}
public async Task ApplyConfiguration(JToken configJson)
public async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
{
configData.LoadValuesFromJson(configJson);
var pairs = new Dictionary<string, string> {
@@ -63,6 +63,8 @@ namespace Jackett.Indexers
var errorMessage = dom["#loginform"].Text().Trim().Replace("\n\t", " ");
throw new ExceptionWithConfigData(errorMessage, configData);
});
return IndexerConfigurationStatus.RequiresTesting;
}
private void FillReleaseInfoFromJson(ReleaseInfo release, JObject r)