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