ILyricProvider.cs 959 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System.Threading.Tasks;
  2. using MediaBrowser.Controller.Entities;
  3. using MediaBrowser.Controller.Resolvers;
  4. namespace MediaBrowser.Providers.Lyric;
  5. /// <summary>
  6. /// Interface ILyricsProvider.
  7. /// </summary>
  8. public interface ILyricProvider
  9. {
  10. /// <summary>
  11. /// Gets a value indicating the provider name.
  12. /// </summary>
  13. string Name { get; }
  14. /// <summary>
  15. /// Gets the priority.
  16. /// </summary>
  17. /// <value>The priority.</value>
  18. ResolverPriority Priority { get; }
  19. /// <summary>
  20. /// Checks if an item has lyrics available.
  21. /// </summary>
  22. /// <param name="item">The media item.</param>
  23. /// <returns>Whether lyrics where found or not.</returns>
  24. bool HasLyrics(BaseItem item);
  25. /// <summary>
  26. /// Gets the lyrics.
  27. /// </summary>
  28. /// <param name="item">The media item.</param>
  29. /// <returns>A task representing found lyrics.</returns>
  30. Task<LyricFile?> GetLyrics(BaseItem item);
  31. }