1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-29 19:26:06 +00:00
Sonarr/NzbDrone.Core/Providers/Jobs/UpdateSceneMappingsJob.cs

34 lines
840 B
C#
Raw Normal View History

2011-06-18 01:46:22 +00:00
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()
{
2011-06-24 01:30:35 +00:00
}
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, int secondaryTargetId)
{
2011-06-24 01:30:35 +00:00
_sceneNameMappingProvider.UpdateMappings();
}
}
}