mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
fixed some broken tests. broke some new ones.
This commit is contained in:
parent
57120c9eeb
commit
0a3b0c9973
10 changed files with 76 additions and 46 deletions
|
@ -34,10 +34,10 @@ namespace NzbDrone.Core.Configuration
|
|||
var type = GetType();
|
||||
var properties = type.GetProperties();
|
||||
|
||||
foreach(var propertyInfo in properties)
|
||||
foreach (var propertyInfo in properties)
|
||||
{
|
||||
var value = propertyInfo.GetValue(this, null);
|
||||
|
||||
|
||||
dict.Add(propertyInfo.Name, value);
|
||||
}
|
||||
|
||||
|
@ -268,7 +268,7 @@ namespace NzbDrone.Core.Configuration
|
|||
get { return GetValue("TwitterAccessTokenSecret", String.Empty); }
|
||||
set { SetValue("TwitterAccessTokenSecret", value); }
|
||||
}
|
||||
|
||||
|
||||
public string GrowlHost
|
||||
{
|
||||
get { return GetValue("GrowlHost", "localhost:23053"); }
|
||||
|
@ -280,7 +280,7 @@ namespace NzbDrone.Core.Configuration
|
|||
get { return GetValue("GrowlPassword", String.Empty); }
|
||||
set { SetValue("GrowlPassword", value); }
|
||||
}
|
||||
|
||||
|
||||
public string ProwlApiKeys
|
||||
{
|
||||
get { return GetValue("ProwlApiKeys", String.Empty); }
|
||||
|
@ -552,7 +552,7 @@ namespace NzbDrone.Core.Configuration
|
|||
{
|
||||
var allWithDefaults = AllWithDefaults();
|
||||
|
||||
foreach(var configValue in configValues)
|
||||
foreach (var configValue in configValues)
|
||||
{
|
||||
object currentValue;
|
||||
allWithDefaults.TryGetValue(configValue.Key, out currentValue);
|
||||
|
@ -571,7 +571,7 @@ namespace NzbDrone.Core.Configuration
|
|||
{
|
||||
if (!_cache.Any())
|
||||
{
|
||||
_cache = All().ToDictionary(c => c.Key, c => c.Value);
|
||||
_cache = All().ToDictionary(c => c.Key.ToLower(), c => c.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue