mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
36 lines
972 B
C#
36 lines
972 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using MediaBrowser.Controller.Entities;
|
|
using MediaBrowser.Controller.Resolvers;
|
|
|
|
namespace MediaBrowser.Controller.Lyrics;
|
|
|
|
/// <summary>
|
|
/// Interface ILyricsProvider.
|
|
/// </summary>
|
|
public interface ILyricProvider
|
|
{
|
|
/// <summary>
|
|
/// Gets a value indicating the provider name.
|
|
/// </summary>
|
|
string Name { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the priority.
|
|
/// </summary>
|
|
/// <value>The priority.</value>
|
|
ResolverPriority Priority { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the supported media types for this provider.
|
|
/// </summary>
|
|
/// <value>The supported media types.</value>
|
|
IReadOnlyCollection<string> SupportedMediaTypes { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the lyrics.
|
|
/// </summary>
|
|
/// <param name="item">The media item.</param>
|
|
/// <returns>A task representing found lyrics.</returns>
|
|
Task<LyricResponse?> GetLyrics(BaseItem item);
|
|
}
|