New: added self hosted analytics to help improve nzbdrone. Can be turned off in Setting>General

This commit is contained in:
Keivan Beigi 2014-09-27 12:39:29 -07:00
parent cc8c88e921
commit a21b535937
7 changed files with 69 additions and 3 deletions

View file

@ -27,6 +27,7 @@ namespace NzbDrone.Core.Configuration
bool EnableSsl { get; }
bool LaunchBrowser { get; }
bool AuthenticationEnabled { get; }
bool AnalyticsEnabled { get; }
string Username { get; }
string Password { get; }
string LogLevel { get; }
@ -139,6 +140,14 @@ namespace NzbDrone.Core.Configuration
get { return GetValueBoolean("AuthenticationEnabled", false); }
}
public bool AnalyticsEnabled
{
get
{
return GetValueBoolean("AnalyticsEnabled", true, persist: false);
}
}
public string Branch
{
get { return GetValue("Branch", "master").ToLowerInvariant(); }