24 lines
950 B
C#
Raw Normal View History

using System.Collections.Generic;
2022-10-28 02:25:57 -05:00
using System.Threading;
2024-08-31 18:56:48 +02:00
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
2022-10-28 02:25:57 -05:00
2024-08-31 18:56:48 +02:00
namespace ConfusedPolarBear.Plugin.IntroSkipper.Analyzers;
2024-04-20 12:58:29 +02:00
2022-10-28 02:25:57 -05:00
/// <summary>
/// Media file analyzer interface.
/// </summary>
public interface IMediaFileAnalyzer
{
/// <summary>
/// Analyze media files for shared introductions or credits, returning all media files that were **not successfully analyzed**.
/// </summary>
/// <param name="analysisQueue">Collection of unanalyzed media files.</param>
/// <param name="mode">Analysis mode.</param>
/// <param name="cancellationToken">Cancellation token from scheduled task.</param>
/// <returns>Collection of media files that were **unsuccessfully analyzed**.</returns>
public IReadOnlyCollection<QueuedEpisode> AnalyzeMediaFiles(
IReadOnlyCollection<QueuedEpisode> analysisQueue,
2022-10-28 02:25:57 -05:00
AnalysisMode mode,
CancellationToken cancellationToken);
}