2011-10-23 02:28:57 +03:00
|
|
|
using Ninject;
|
2011-06-08 00:19:11 +03:00
|
|
|
using NzbDrone.Core.Model.Notification;
|
2011-06-07 09:29:07 +03:00
|
|
|
|
2011-06-08 00:19:11 +03:00
|
|
|
namespace NzbDrone.Core.Providers.Jobs
|
2011-06-07 09:29:07 +03:00
|
|
|
{
|
2011-06-08 00:19:11 +03:00
|
|
|
public class PostDownloadScanJob : IJob
|
2011-06-07 09:29:07 +03:00
|
|
|
{
|
2011-10-13 02:47:28 +03:00
|
|
|
private readonly PostDownloadProvider _postDownloadProvider;
|
2011-06-07 09:29:07 +03:00
|
|
|
|
2011-06-14 04:23:04 +03:00
|
|
|
[Inject]
|
2011-10-13 02:47:28 +03:00
|
|
|
public PostDownloadScanJob(PostDownloadProvider postDownloadProvider)
|
2011-06-07 09:29:07 +03:00
|
|
|
{
|
2011-10-13 02:47:28 +03:00
|
|
|
_postDownloadProvider = postDownloadProvider;
|
2011-06-07 09:29:07 +03:00
|
|
|
}
|
|
|
|
|
2011-06-08 00:19:11 +03:00
|
|
|
public PostDownloadScanJob()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public string Name
|
|
|
|
{
|
2011-07-05 09:52:06 +03:00
|
|
|
get { return "Drop folder monitor"; }
|
2011-06-08 00:19:11 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public int DefaultInterval
|
|
|
|
{
|
|
|
|
get { return 1; }
|
|
|
|
}
|
2011-06-07 09:29:07 +03:00
|
|
|
|
2011-08-22 03:48:37 +03:00
|
|
|
public virtual void Start(ProgressNotification notification, int targetId, int secondaryTargetId)
|
2011-06-07 09:29:07 +03:00
|
|
|
{
|
2011-10-14 18:37:19 +03:00
|
|
|
_postDownloadProvider.ScanDropFolder(notification);
|
2011-06-07 09:29:07 +03:00
|
|
|
}
|
|
|
|
}
|
2011-08-26 09:23:21 +03:00
|
|
|
}
|