#nullable disable #pragma warning disable CS1591 using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using MediaBrowser.Controller.Providers; using MediaBrowser.Model.Providers; namespace MediaBrowser.Controller.Subtitles { public interface ISubtitleProvider { /// /// Gets the name. /// /// The name. string Name { get; } /// /// Gets the supported media types. /// /// The supported media types. IEnumerable SupportedMediaTypes { get; } /// /// Searches the subtitles. /// /// The request. /// The cancellation token. /// Task{IEnumerable{RemoteSubtitleInfo}}. Task> Search(SubtitleSearchRequest request, CancellationToken cancellationToken); /// /// Gets the subtitles. /// /// The identifier. /// The cancellation token. /// Task{SubtitleResponse}. Task GetSubtitles(string id, CancellationToken cancellationToken); } }