mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 17:59:14 +00: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
No EOL
840 B
C#
34 lines
No EOL
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();
|
|
}
|
|
}
|
|
} |