1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-22 01:11:43 +02:00
Radarr/NzbDrone.Core/Providers/Jobs/PostDownloadScanJob.cs
Mark McDowall 8cac84b4ad PostDownloadProvider broken down further.
Will try to reprocess _NzbDrone_ directories each pass, but will mark with an error when possible.
Attempt to process _UNPACK_ and _FAILED_ directories 30 minutes after first detected by NzbDrone (to give SAB time to unpack properly before processing).
2011-10-14 08:37:19 -07:00

40 lines
939 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.ScanDropFolder(notification);
}
}
}