Skip to content

Commit

Permalink
Rename DetectIntroductionsTask.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfusedPolarBear committed Nov 2, 2022
1 parent 2bd972f commit 546bf75
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,34 @@ namespace ConfusedPolarBear.Plugin.IntroSkipper;

/// <summary>
/// Analyze all television episodes for introduction sequences.
/// TODO: FIXME: rename task and file to DetectIntroductionsTask.
/// </summary>
public class AnalyzeEpisodesTask : IScheduledTask
public class DetectIntroductionsTask : IScheduledTask
{
private readonly ILogger<AnalyzeEpisodesTask> _logger;
private readonly ILogger<DetectIntroductionsTask> _logger;

private readonly ILoggerFactory _loggerFactory;

private readonly ILibraryManager? _libraryManager;

/// <summary>
/// Initializes a new instance of the <see cref="AnalyzeEpisodesTask"/> class.
/// Initializes a new instance of the <see cref="DetectIntroductionsTask"/> class.
/// </summary>
/// <param name="loggerFactory">Logger factory.</param>
/// <param name="libraryManager">Library manager.</param>
public AnalyzeEpisodesTask(
public DetectIntroductionsTask(
ILoggerFactory loggerFactory,
ILibraryManager libraryManager) : this(loggerFactory)
{
_libraryManager = libraryManager;
}

/// <summary>
/// Initializes a new instance of the <see cref="AnalyzeEpisodesTask"/> class.
/// Initializes a new instance of the <see cref="DetectIntroductionsTask"/> class.
/// </summary>
/// <param name="loggerFactory">Logger factory.</param>
public AnalyzeEpisodesTask(ILoggerFactory loggerFactory)
public DetectIntroductionsTask(ILoggerFactory loggerFactory)
{
_logger = loggerFactory.CreateLogger<AnalyzeEpisodesTask>();
_logger = loggerFactory.CreateLogger<DetectIntroductionsTask>();
_loggerFactory = loggerFactory;

EdlManager.Initialize(_logger);
Expand Down

0 comments on commit 546bf75

Please sign in to comment.