You've already forked Sonarr
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:
@@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace NzbDrone.Core.Providers.Indexer
|
||||
protected abstract string[] Urls { get; }
|
||||
|
||||
|
||||
protected IndexerSetting Settings
|
||||
public IndexerSetting Settings
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user