jellyfin/MediaBrowser.Controller/Lyrics/ILyricProvider.cs

36 lines
961 B
C#
Raw Normal View History

using System.Collections.Generic;
using MediaBrowser.Controller.Entities;
2022-09-18 19:13:01 +02:00
using MediaBrowser.Controller.Resolvers;
2022-09-17 23:37:38 +02:00
namespace MediaBrowser.Controller.Lyrics;
/// <summary>
/// Interface ILyricsProvider.
/// </summary>
public interface ILyricProvider
{
/// <summary>
2022-09-17 23:37:38 +02:00
/// Gets a value indicating the provider name.
/// </summary>
2022-09-17 23:37:38 +02:00
string Name { get; }
2022-09-16 02:49:25 +02:00
2022-09-18 19:13:01 +02:00
/// <summary>
/// Gets the priority.
/// </summary>
/// <value>The priority.</value>
ResolverPriority Priority { get; }
2022-09-17 23:37:38 +02:00
/// <summary>
/// Gets the supported media types for this provider.
/// </summary>
/// <value>The supported media types.</value>
2022-09-18 22:05:50 +02:00
IReadOnlyCollection<string> SupportedMediaTypes { get; }
2022-09-17 23:37:38 +02:00
/// <summary>
/// Gets the lyrics.
/// </summary>
/// <param name="item">The media item.</param>
/// <returns>If found, returns lyrics for passed item; otherwise, null.</returns>
LyricResponse? GetLyrics(BaseItem item);
}