ILyricManager.cs 725 B

123456789101112131415161718192021222324
  1. using System.Threading.Tasks;
  2. using MediaBrowser.Controller.Entities;
  3. namespace MediaBrowser.Controller.Lyrics;
  4. /// <summary>
  5. /// Interface ILyricManager.
  6. /// </summary>
  7. public interface ILyricManager
  8. {
  9. /// <summary>
  10. /// Gets the lyrics.
  11. /// </summary>
  12. /// <param name="item">The media item.</param>
  13. /// <returns>A task representing found lyrics the passed item.</returns>
  14. Task<LyricResponse?> GetLyrics(BaseItem item);
  15. /// <summary>
  16. /// Checks if requested item has a matching local lyric file.
  17. /// </summary>
  18. /// <param name="item">The media item.</param>
  19. /// <returns>True if item has a matching lyric file; otherwise false.</returns>
  20. bool HasLyricFile(BaseItem item);
  21. }