diff options
| author | 1hitsong <3330318+1hitsong@users.noreply.github.com> | 2022-09-17 19:47:29 -0400 |
|---|---|---|
| committer | 1hitsong <3330318+1hitsong@users.noreply.github.com> | 2022-09-17 19:47:29 -0400 |
| commit | 0b86630be7737e28555f0132322ecd02915284c5 (patch) | |
| tree | 18dd86164931fbda8a0d550422583d72082aa410 /MediaBrowser.Controller/Lyrics | |
| parent | 64b013b121f472d2658e5f2b3a672c4c4ced342d (diff) | |
Use model properties for LRC metadata
Diffstat (limited to 'MediaBrowser.Controller/Lyrics')
| -rw-r--r-- | MediaBrowser.Controller/Lyrics/LyricResponse.cs | 2 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Lyrics/Metadata.cs | 54 |
2 files changed, 55 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Lyrics/LyricResponse.cs b/MediaBrowser.Controller/Lyrics/LyricResponse.cs index e18cb1101..adc13050e 100644 --- a/MediaBrowser.Controller/Lyrics/LyricResponse.cs +++ b/MediaBrowser.Controller/Lyrics/LyricResponse.cs @@ -10,7 +10,7 @@ public class LyricResponse /// <summary> /// Gets or sets Metadata. /// </summary> - public IDictionary<string, string>? Metadata { get; set; } + public Metadata? Metadata { get; set; } /// <summary> /// Gets or sets Lyrics. diff --git a/MediaBrowser.Controller/Lyrics/Metadata.cs b/MediaBrowser.Controller/Lyrics/Metadata.cs new file mode 100644 index 000000000..114b56777 --- /dev/null +++ b/MediaBrowser.Controller/Lyrics/Metadata.cs @@ -0,0 +1,54 @@ +using System.Collections.Generic; + +namespace MediaBrowser.Controller.Lyrics; + +/// <summary> +/// Metadata model. +/// </summary> +public class Metadata +{ + /// <summary> + /// Gets or sets Artist - [ar:The song artist]. + /// </summary> + public string? Ar { get; set; } + + /// <summary> + /// Gets or sets Album - [al:The album this song is on]. + /// </summary> + public string? Al { get; set; } + + /// <summary> + /// Gets or sets Title - [ti:The title of the song]. + /// </summary> + public string? Ti { get; set; } + + /// <summary> + /// Gets or sets Author - [au:Creator of the lyric data]. + /// </summary> + public string? Au { get; set; } + + /// <summary> + /// Gets or sets Length - [length:How long the song is]. + /// </summary> + public string? Length { get; set; } + + /// <summary> + /// Gets or sets By - [by:Creator of the LRC file]. + /// </summary> + public string? By { get; set; } + + /// <summary> + /// Gets or sets Offset - [offsec:+/- Timestamp adjustment in milliseconds]. + /// </summary> + public string? Offset { get; set; } + + /// <summary> + /// Gets or sets Creator - [re:The Software used to create the LRC file]. + /// </summary> + public string? Re { get; set; } + + /// <summary> + /// Gets or sets Version - [ve:The version of the Creator used]. + /// </summary> + public string? Ve { get; set; } +} |
