aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Lyrics/ILyricManager.cs
blob: bb93e1e4c66de309c17d788be2bfab6933ddd66f (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
using System.Threading.Tasks;
using MediaBrowser.Controller.Entities;

namespace MediaBrowser.Controller.Lyrics;

/// <summary>
/// Interface ILyricManager.
/// </summary>
public interface ILyricManager
{
    /// <summary>
    /// Gets the lyrics.
    /// </summary>
    /// <param name="item">The media item.</param>
    /// <returns>A task representing found lyrics the passed item.</returns>
    Task<LyricResponse?> GetLyrics(BaseItem item);

    /// <summary>
    /// Checks if requested item has a matching local lyric file.
    /// </summary>
    /// <param name="item">The media item.</param>
    /// <returns>True if item has a matching lyric file; otherwise false.</returns>
    bool HasLyricFile(BaseItem item);
}