More robust testing/verification for indexers

This commit is contained in:
zone117x
2015-04-19 16:01:42 -06:00
parent c351cebdfc
commit ac003e7a78
9 changed files with 10 additions and 56 deletions

View File

@@ -228,7 +228,7 @@ namespace Jackett
var indexer = indexerManager.GetIndexer(indexerString);
jsonReply["name"] = indexer.DisplayName;
await indexer.ApplyConfiguration(postData["config"]);
await indexer.VerifyConnection();
await indexerManager.TestIndexer(indexer);
jsonReply["result"] = "success";
}
catch (Exception ex)
@@ -281,7 +281,7 @@ namespace Jackett
string indexerString = (string)postData["indexer"];
var indexer = indexerManager.GetIndexer(indexerString);
jsonReply["name"] = indexer.DisplayName;
await indexer.VerifyConnection();
await indexerManager.TestIndexer(indexer);
jsonReply["result"] = "success";
}
catch (Exception ex)