ILyricProvider.cs 972 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using MediaBrowser.Controller.Entities;
  4. using MediaBrowser.Controller.Resolvers;
  5. namespace MediaBrowser.Controller.Lyrics;
  6. /// <summary>
  7. /// Interface ILyricsProvider.
  8. /// </summary>
  9. public interface ILyricProvider
  10. {
  11. /// <summary>
  12. /// Gets a value indicating the provider name.
  13. /// </summary>
  14. string Name { get; }
  15. /// <summary>
  16. /// Gets the priority.
  17. /// </summary>
  18. /// <value>The priority.</value>
  19. ResolverPriority Priority { get; }
  20. /// <summary>
  21. /// Gets the supported media types for this provider.
  22. /// </summary>
  23. /// <value>The supported media types.</value>
  24. IReadOnlyCollection<string> SupportedMediaTypes { get; }
  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<LyricResponse?> GetLyrics(BaseItem item);
  31. }