mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Web auth
This commit is contained in:
@@ -18,7 +18,6 @@ namespace Jackett.Services
|
||||
string GetVersion();
|
||||
string GetIndexerConfigDir();
|
||||
string GetAppDataFolder();
|
||||
JObject ReadServerSettingsFile();
|
||||
string GetSonarrConfigFile();
|
||||
T GetConfig<T>();
|
||||
void SaveConfig<T>(T config);
|
||||
@@ -168,24 +167,5 @@ namespace Jackett.Services
|
||||
{
|
||||
return Path.Combine(GetAppDataFolder(), "sonarr_api.json");
|
||||
}
|
||||
|
||||
|
||||
public JObject ReadServerSettingsFile()
|
||||
{
|
||||
var path = GetConfigFile();
|
||||
JObject jsonReply = new JObject();
|
||||
if (File.Exists(path))
|
||||
{
|
||||
jsonReply = JObject.Parse(File.ReadAllText(path));
|
||||
// Port = (int)jsonReply["port"];
|
||||
// ListenPublic = (bool)jsonReply["public"];
|
||||
}
|
||||
else
|
||||
{
|
||||
// jsonReply["port"] = Port;
|
||||
// jsonReply["public"] = ListenPublic;
|
||||
}
|
||||
return jsonReply;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user