mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
moved config to objectdb.
This commit is contained in:
parent
65061cdc96
commit
13658e3c6d
88 changed files with 627 additions and 586 deletions
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using NLog;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.Model;
|
||||
using NzbDrone.Core.Providers.Core;
|
||||
|
||||
|
@ -8,12 +9,12 @@ namespace NzbDrone.Core.DecisionEngine
|
|||
{
|
||||
public class AllowedReleaseGroupSpecification
|
||||
{
|
||||
private readonly ConfigProvider _configProvider;
|
||||
private readonly IConfigService _configService;
|
||||
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public AllowedReleaseGroupSpecification(ConfigProvider configProvider)
|
||||
public AllowedReleaseGroupSpecification(IConfigService configService)
|
||||
{
|
||||
_configProvider = configProvider;
|
||||
_configService = configService;
|
||||
}
|
||||
|
||||
public AllowedReleaseGroupSpecification()
|
||||
|
@ -25,7 +26,7 @@ namespace NzbDrone.Core.DecisionEngine
|
|||
{
|
||||
logger.Trace("Beginning release group check for: {0}", subject);
|
||||
|
||||
var allowed = _configProvider.AllowedReleaseGroups;
|
||||
var allowed = _configService.AllowedReleaseGroups;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(allowed))
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue