mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-06 11:02:40 +01:00
350e0388de
JobQueueItem class created instead of using Tuples. Added Search for Season and Rename Season jobs , plus links for them on Series/Details. Add GetSeasonFiles added to MediaFileProvider.
34 lines
840 B
C#
34 lines
840 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, int secondaryTargetId)
|
|
{
|
|
_sceneNameMappingProvider.UpdateMappings();
|
|
}
|
|
}
|
|
} |