1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-11-06 09:19:38 +02:00

Attach to debugger is a lot more reliable.

Added system/config ui
rss job only runs enabled jobs
fixed wrong mappings for indexers in settingscontroller
This commit is contained in:
kay.one
2011-04-22 10:09:06 -07:00
parent 8ec72ed432
commit fd32a04d45
9 changed files with 89 additions and 41 deletions

View File

@@ -1,4 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using NLog;
using NzbDrone.Core.Repository;
using SubSonic.Repository;
@@ -15,6 +17,11 @@ namespace NzbDrone.Core.Providers.Core
_sonicRepo = dataRepository;
}
public IList<Config> All()
{
return _sonicRepo.All<Config>().ToList();
}
public ConfigProvider()
{
}

View File

@@ -44,7 +44,7 @@ namespace NzbDrone.Core.Providers.Indexer
protected abstract string[] Urls { get; }
protected IndexerSetting Settings
public IndexerSetting Settings
{
get
{

View File

@@ -30,7 +30,7 @@ namespace NzbDrone.Core.Providers.Jobs
public void Start(ProgressNotification notification, int targetId)
{
foreach (var indexer in _indexers)
foreach (var indexer in _indexers.Where(i => i.Settings.Enable))
{
indexer.Fetch();
}