You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
959 B
37 lines
959 B
2 years ago
|
using System.Threading.Tasks;
|
||
2 years ago
|
using MediaBrowser.Controller.Entities;
|
||
2 years ago
|
using MediaBrowser.Controller.Resolvers;
|
||
2 years ago
|
|
||
1 year ago
|
namespace MediaBrowser.Providers.Lyric;
|
||
2 years ago
|
|
||
|
/// <summary>
|
||
|
/// Interface ILyricsProvider.
|
||
|
/// </summary>
|
||
|
public interface ILyricProvider
|
||
2 years ago
|
{
|
||
|
/// <summary>
|
||
2 years ago
|
/// Gets a value indicating the provider name.
|
||
2 years ago
|
/// </summary>
|
||
2 years ago
|
string Name { get; }
|
||
2 years ago
|
|
||
2 years ago
|
/// <summary>
|
||
|
/// Gets the priority.
|
||
|
/// </summary>
|
||
|
/// <value>The priority.</value>
|
||
|
ResolverPriority Priority { get; }
|
||
|
|
||
2 years ago
|
/// <summary>
|
||
1 year ago
|
/// Checks if an item has lyrics available.
|
||
2 years ago
|
/// </summary>
|
||
1 year ago
|
/// <param name="item">The media item.</param>
|
||
|
/// <returns>Whether lyrics where found or not.</returns>
|
||
|
bool HasLyrics(BaseItem item);
|
||
2 years ago
|
|
||
2 years ago
|
/// <summary>
|
||
|
/// Gets the lyrics.
|
||
|
/// </summary>
|
||
|
/// <param name="item">The media item.</param>
|
||
2 years ago
|
/// <returns>A task representing found lyrics.</returns>
|
||
1 year ago
|
Task<LyricFile?> GetLyrics(BaseItem item);
|
||
2 years ago
|
}
|