mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-11 05:22:44 +01:00
40 lines
930 B
C#
40 lines
930 B
C#
using System;
|
|
using System.IO;
|
|
using Ninject;
|
|
using NLog;
|
|
using NzbDrone.Core.Model;
|
|
using NzbDrone.Core.Model.Notification;
|
|
using NzbDrone.Core.Providers.Core;
|
|
|
|
namespace NzbDrone.Core.Providers.Jobs
|
|
{
|
|
public class PostDownloadScanJob : IJob
|
|
{
|
|
private readonly PostDownloadProvider _postDownloadProvider;
|
|
|
|
[Inject]
|
|
public PostDownloadScanJob(PostDownloadProvider postDownloadProvider)
|
|
{
|
|
_postDownloadProvider = postDownloadProvider;
|
|
}
|
|
|
|
public PostDownloadScanJob()
|
|
{
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get { return "Drop folder monitor"; }
|
|
}
|
|
|
|
public int DefaultInterval
|
|
{
|
|
get { return 1; }
|
|
}
|
|
|
|
public virtual void Start(ProgressNotification notification, int targetId, int secondaryTargetId)
|
|
{
|
|
_postDownloadProvider.Start(notification);
|
|
}
|
|
}
|
|
} |