ILyricParser.cs 719 B

12345678910111213141516171819202122232425262728
  1. using MediaBrowser.Controller.Resolvers;
  2. using MediaBrowser.Model.Lyrics;
  3. namespace MediaBrowser.Controller.Lyrics;
  4. /// <summary>
  5. /// Interface ILyricParser.
  6. /// </summary>
  7. public interface ILyricParser
  8. {
  9. /// <summary>
  10. /// Gets a value indicating the provider name.
  11. /// </summary>
  12. string Name { get; }
  13. /// <summary>
  14. /// Gets the priority.
  15. /// </summary>
  16. /// <value>The priority.</value>
  17. ResolverPriority Priority { get; }
  18. /// <summary>
  19. /// Parses the raw lyrics into a response.
  20. /// </summary>
  21. /// <param name="lyrics">The raw lyrics content.</param>
  22. /// <returns>The parsed lyrics or null if invalid.</returns>
  23. LyricDto? ParseLyrics(LyricFile lyrics);
  24. }