mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-29 03:05:49 +00:00
39 lines
852 B
C#
39 lines
852 B
C#
|
using System.Linq;
|
|||
|
using NLog;
|
|||
|
|
|||
|
namespace NzbDrone.Core.Providers.Timers
|
|||
|
{
|
|||
|
public class RssSyncTimer : ITimer
|
|||
|
{
|
|||
|
private readonly IndexerProvider _indexerProvider;
|
|||
|
|
|||
|
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
|||
|
|
|||
|
public RssSyncTimer(IndexerProvider indexerProvider)
|
|||
|
{
|
|||
|
_indexerProvider = indexerProvider;
|
|||
|
}
|
|||
|
|
|||
|
public string Name
|
|||
|
{
|
|||
|
get { return "RSS Sync"; }
|
|||
|
}
|
|||
|
|
|||
|
public int DefaultInterval
|
|||
|
{
|
|||
|
get { return 15; }
|
|||
|
}
|
|||
|
|
|||
|
public void Start()
|
|||
|
{
|
|||
|
Logger.Info("Doing Things!!!!");
|
|||
|
|
|||
|
var indexers = _indexerProvider.AllIndexers().Where(c => c.Enable);
|
|||
|
|
|||
|
foreach (var indexerSetting in indexers)
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|