LyricSearchRequest.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 artist name.
  16. /// </summary>
  17. public IReadOnlyList<string>? ArtistNames { get; set; }
  18. /// <summary>
  19. /// Gets or sets the album name.
  20. /// </summary>
  21. public string? AlbumName { get; set; }
  22. /// <summary>
  23. /// Gets or sets the song name.
  24. /// </summary>
  25. public string? SongName { get; set; }
  26. /// <summary>
  27. /// Gets or sets the track duration in ticks.
  28. /// </summary>
  29. public long? Duration { get; set; }
  30. /// <inheritdoc />
  31. public Dictionary<string, string> ProviderIds { get; set; } = new(StringComparer.OrdinalIgnoreCase);
  32. /// <summary>
  33. /// Gets or sets a value indicating whether to search all providers.
  34. /// </summary>
  35. public bool SearchAllProviders { get; set; } = true;
  36. /// <summary>
  37. /// Gets or sets the list of disabled lyric fetcher names.
  38. /// </summary>
  39. public IReadOnlyList<string> DisabledLyricFetchers { get; set; } = [];
  40. /// <summary>
  41. /// Gets or sets the order of lyric fetchers.
  42. /// </summary>
  43. public IReadOnlyList<string> LyricFetcherOrder { get; set; } = [];
  44. /// <summary>
  45. /// Gets or sets a value indicating whether this request is automated.
  46. /// </summary>
  47. public bool IsAutomated { get; set; }
  48. }