aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Lyrics/ILyricParser.cs
blob: 819950d09e2e836b593c2c9ac19c2524676d7f5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using MediaBrowser.Controller.Resolvers;
using MediaBrowser.Model.Lyrics;

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);
}