diff options
| author | 1hitsong <3330318+1hitsong@users.noreply.github.com> | 2022-09-18 16:05:50 -0400 |
|---|---|---|
| committer | 1hitsong <3330318+1hitsong@users.noreply.github.com> | 2022-09-18 16:05:50 -0400 |
| commit | 7e923e268865d8c0933a22247424d205429a474b (patch) | |
| tree | 45d886c1d2d1e83f327b250b9d6abe55e363a839 /MediaBrowser.Controller/Lyrics | |
| parent | dddebec794c72242952cb45e84fed452d828a641 (diff) | |
Use numeric values for metadata values
Diffstat (limited to 'MediaBrowser.Controller/Lyrics')
| -rw-r--r-- | MediaBrowser.Controller/Lyrics/ILyricProvider.cs | 2 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Lyrics/LyricLine.cs (renamed from MediaBrowser.Controller/Lyrics/Lyric.cs) | 6 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Lyrics/LyricMetadata.cs | 6 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Lyrics/LyricResponse.cs | 2 |
4 files changed, 9 insertions, 7 deletions
diff --git a/MediaBrowser.Controller/Lyrics/ILyricProvider.cs b/MediaBrowser.Controller/Lyrics/ILyricProvider.cs index 651fe507f..c5b625226 100644 --- a/MediaBrowser.Controller/Lyrics/ILyricProvider.cs +++ b/MediaBrowser.Controller/Lyrics/ILyricProvider.cs @@ -24,7 +24,7 @@ public interface ILyricProvider /// Gets the supported media types for this provider. /// </summary> /// <value>The supported media types.</value> - IEnumerable<string> SupportedMediaTypes { get; } + IReadOnlyCollection<string> SupportedMediaTypes { get; } /// <summary> /// Gets the lyrics. diff --git a/MediaBrowser.Controller/Lyrics/Lyric.cs b/MediaBrowser.Controller/Lyrics/LyricLine.cs index f39fbb022..43997f656 100644 --- a/MediaBrowser.Controller/Lyrics/Lyric.cs +++ b/MediaBrowser.Controller/Lyrics/LyricLine.cs @@ -3,14 +3,14 @@ namespace MediaBrowser.Controller.Lyrics; /// <summary> /// Lyric model. /// </summary> -public class Lyric +public class LyricLine { /// <summary> - /// Initializes a new instance of the <see cref="Lyric"/> class. + /// Initializes a new instance of the <see cref="LyricLine"/> class. /// </summary> /// <param name="start">The lyric start time in ticks.</param> /// <param name="text">The lyric text.</param> - public Lyric(string text, long? start = null) + public LyricLine(string text, long? start = null) { Start = start; Text = text; diff --git a/MediaBrowser.Controller/Lyrics/LyricMetadata.cs b/MediaBrowser.Controller/Lyrics/LyricMetadata.cs index 36a833f85..0ba777975 100644 --- a/MediaBrowser.Controller/Lyrics/LyricMetadata.cs +++ b/MediaBrowser.Controller/Lyrics/LyricMetadata.cs @@ -1,3 +1,5 @@ +using System; + namespace MediaBrowser.Controller.Lyrics; /// <summary> @@ -28,7 +30,7 @@ public class LyricMetadata /// <summary> /// Gets or sets Length - How long the song is. /// </summary> - public string? Length { get; set; } + public long? Length { get; set; } /// <summary> /// Gets or sets By - Creator of the LRC file. @@ -38,7 +40,7 @@ public class LyricMetadata /// <summary> /// Gets or sets Offset - Offset:+/- Timestamp adjustment in milliseconds. /// </summary> - public string? Offset { get; set; } + public long? Offset { get; set; } /// <summary> /// Gets or sets Creator - The Software used to create the LRC file. diff --git a/MediaBrowser.Controller/Lyrics/LyricResponse.cs b/MediaBrowser.Controller/Lyrics/LyricResponse.cs index 405e8cac1..b3c65ac8c 100644 --- a/MediaBrowser.Controller/Lyrics/LyricResponse.cs +++ b/MediaBrowser.Controller/Lyrics/LyricResponse.cs @@ -15,5 +15,5 @@ public class LyricResponse /// <summary> /// Gets or sets Lyrics. /// </summary> - public IEnumerable<Lyric> Lyrics { get; set; } + public IEnumerable<LyricLine> Lyrics { get; set; } } |
