a1d634b66e
Co-authored-by: rlauu <46294892+rlauu@users.noreply.github.com> Co-authored-by: Kilian von Pflugk <github@jumoog.io>
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
// Copyright (C) 2024 Intro-Skipper contributors <intro-skipper.org>
|
|
// SPDX-License-Identifier: GPL-3.0-only.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using IntroSkipper.Data;
|
|
|
|
namespace IntroSkipper.Analyzers;
|
|
|
|
/// <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>
|
|
Task<IReadOnlyList<QueuedEpisode>> AnalyzeMediaFiles(
|
|
IReadOnlyList<QueuedEpisode> analysisQueue,
|
|
AnalysisMode mode,
|
|
CancellationToken cancellationToken);
|
|
}
|