mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-01 07:53:41 +02:00
More robust testing/verification for indexers
This commit is contained in:
@@ -107,13 +107,6 @@ namespace Jackett.Indexers
|
||||
}
|
||||
}
|
||||
|
||||
public async Task VerifyConnection()
|
||||
{
|
||||
var response = await client.GetStringAsync(BaseUrl);
|
||||
if (!response.Contains("logout.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"]);
|
||||
|
Reference in New Issue
Block a user