1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-11 13:32:42 +01:00
Radarr/NzbDrone.Core/Providers/Jobs/UpdateSceneMappingsJob.cs
2011-06-23 18:30:35 -07:00

34 lines
817 B
C#

using NzbDrone.Core.Model.Notification;
namespace NzbDrone.Core.Providers.Jobs
{
public class UpdateSceneMappingsJob : IJob
{
private readonly SceneMappingProvider _sceneNameMappingProvider;
public UpdateSceneMappingsJob(SceneMappingProvider sceneNameMappingProvider)
{
_sceneNameMappingProvider = sceneNameMappingProvider;
}
public UpdateSceneMappingsJob()
{
}
public string Name
{
get { return "Update Scene Mappings"; }
}
public int DefaultInterval
{
get { return 720; } //Every 12 hours
}
public virtual void Start(ProgressNotification notification, int targetId)
{
_sceneNameMappingProvider.UpdateMappings();
}
}
}