You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sonarr/NzbDrone.Core/Jobs/Implementations/UpdateSceneMappingsJob.cs

37 lines
890 B

using System;
using System.Linq;
using NzbDrone.Core.Model.Notification;
12 years ago
using NzbDrone.Core.ReferenceData;
namespace NzbDrone.Core.Jobs.Implementations
{
public class UpdateSceneMappingsJob : IJob
{
12 years ago
private readonly SceneMappingService _sceneNameMappingService;
12 years ago
public UpdateSceneMappingsJob(SceneMappingService sceneNameMappingService)
{
12 years ago
_sceneNameMappingService = sceneNameMappingService;
}
public UpdateSceneMappingsJob()
{
}
public string Name
{
get { return "Update Scene Mappings"; }
}
public TimeSpan DefaultInterval
{
get { return TimeSpan.FromHours(6); }
}
public virtual void Start(ProgressNotification notification, dynamic options)
{
12 years ago
_sceneNameMappingService.UpdateMappings();
}
}
}