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.
37 lines
890 B
37 lines
890 B
12 years ago
|
using System;
|
||
13 years ago
|
using System.Linq;
|
||
13 years ago
|
using NzbDrone.Core.Model.Notification;
|
||
12 years ago
|
using NzbDrone.Core.ReferenceData;
|
||
14 years ago
|
|
||
12 years ago
|
namespace NzbDrone.Core.Jobs.Implementations
|
||
14 years ago
|
{
|
||
13 years ago
|
public class UpdateSceneMappingsJob : IJob
|
||
14 years ago
|
{
|
||
12 years ago
|
private readonly SceneMappingService _sceneNameMappingService;
|
||
14 years ago
|
|
||
12 years ago
|
public UpdateSceneMappingsJob(SceneMappingService sceneNameMappingService)
|
||
14 years ago
|
{
|
||
12 years ago
|
_sceneNameMappingService = sceneNameMappingService;
|
||
14 years ago
|
}
|
||
|
|
||
|
public UpdateSceneMappingsJob()
|
||
|
{
|
||
14 years ago
|
|
||
14 years ago
|
}
|
||
|
|
||
|
public string Name
|
||
|
{
|
||
|
get { return "Update Scene Mappings"; }
|
||
|
}
|
||
|
|
||
13 years ago
|
public TimeSpan DefaultInterval
|
||
14 years ago
|
{
|
||
12 years ago
|
get { return TimeSpan.FromHours(6); }
|
||
14 years ago
|
}
|
||
|
|
||
12 years ago
|
public virtual void Start(ProgressNotification notification, dynamic options)
|
||
14 years ago
|
{
|
||
12 years ago
|
_sceneNameMappingService.UpdateMappings();
|
||
14 years ago
|
}
|
||
|
}
|
||
|
}
|