mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-21 01:49:57 +02:00
24 lines
617 B
C#
24 lines
617 B
C#
using NLog;
|
|
using NzbDrone.Core.Tv;
|
|
|
|
namespace NzbDrone.Core.Housekeeping.Housekeepers
|
|
{
|
|
public class CleanupOrphanedEpisodes : IHousekeepingTask
|
|
{
|
|
private readonly IEpisodeService _episodeService;
|
|
private readonly Logger _logger;
|
|
|
|
public CleanupOrphanedEpisodes(IEpisodeService episodeService, Logger logger)
|
|
{
|
|
_episodeService = episodeService;
|
|
_logger = logger;
|
|
}
|
|
|
|
public void Clean()
|
|
{
|
|
_logger.Trace("Running orphaned episodes cleanup");
|
|
_episodeService.CleanupOrphanedEpisodes();
|
|
}
|
|
}
|
|
}
|