LyricSearchRequest.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Entities;
  4. namespace MediaBrowser.Model.Lyrics;
  5. /// <summary>
  6. /// Lyric search request.
  7. /// </summary>
  8. public class LyricSearchRequest : IHasProviderIds
  9. {
  10. /// <summary>
  11. /// Gets or sets the media path.
  12. /// </summary>
  13. public string? MediaPath { get; set; }
  14. /// <summary>
  15. /// Gets or sets the album artist names.
  16. /// </summary>
  17. public IReadOnlyList<string>? AlbumArtistsNames { get; set; }
  18. /// <summary>
  19. /// Gets or sets the artist names.
  20. /// </summary>
  21. public IReadOnlyList<string>? ArtistNames { get; set; }
  22. /// <summary>
  23. /// Gets or sets the album name.
  24. /// </summary>
  25. public string? AlbumName { get; set; }
  26. /// <summary>
  27. /// Gets or sets the song name.
  28. /// </summary>
  29. public string? SongName { get; set; }
  30. /// <summary>
  31. /// Gets or sets the track duration in ticks.
  32. /// </summary>
  33. public long? Duration { get; set; }
  34. /// <inheritdoc />
  35. public Dictionary<string, string> ProviderIds { get; set; } = new(StringComparer.OrdinalIgnoreCase);
  36. /// <summary>
  37. /// Gets or sets a value indicating whether to search all providers.
  38. /// </summary>
  39. public bool SearchAllProviders { get; set; } = true;
  40. /// <summary>
  41. /// Gets or sets the list of disabled lyric fetcher names.
  42. /// </summary>
  43. public IReadOnlyList<string> DisabledLyricFetchers { get; set; } = [];
  44. /// <summary>
  45. /// Gets or sets the order of lyric fetchers.
  46. /// </summary>
  47. public IReadOnlyList<string> LyricFetcherOrder { get; set; } = [];
  48. /// <summary>
  49. /// Gets or sets a value indicating whether this request is automated.
  50. /// </summary>
  51. public bool IsAutomated { get; set; }
  52. }