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

@@ -111,19 +111,6 @@ namespace Jackett.Indexers
return message;
}
public Task VerifyConnection()
{
return Task.Run(async () =>
{
var message = CreateHttpRequest(new Uri(BaseUrl));
var response = await client.SendAsync(message);
var result = await response.Content.ReadAsStringAsync();
if (!result.Contains("/my.php"))
throw new Exception("Detected as not logged in");
});
}
public void LoadFromSavedConfiguration(Newtonsoft.Json.Linq.JToken jsonConfig)
{
cookies.FillFromJson(new Uri(BaseUrl), (JArray)jsonConfig["cookies"]);