jellyfin/MediaBrowser.Controller/Lyrics/ILyricParser.cs

29 lines
719 B
C#
Raw Normal View History

2023-06-20 14:51:07 +00:00
using MediaBrowser.Controller.Resolvers;
using MediaBrowser.Model.Lyrics;
2023-06-20 14:51:07 +00:00
namespace MediaBrowser.Controller.Lyrics;
/// <summary>
/// Interface ILyricParser.
/// </summary>
public interface ILyricParser
{
/// <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>
/// Parses the raw lyrics into a response.
/// </summary>
/// <param name="lyrics">The raw lyrics content.</param>
/// <returns>The parsed lyrics or null if invalid.</returns>
LyricDto? ParseLyrics(LyricFile lyrics);
2023-06-20 14:51:07 +00:00
}