diff options
| author | Max Rumpf <max.rumpf1998@gmail.com> | 2025-06-25 00:59:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-24 16:59:09 -0600 |
| commit | 9b8c12d4336fdf327d8fcdcd38cf9bb9c1e71716 (patch) | |
| tree | e2b10a48238ab3557116f777595358bfa2d2c8c6 /MediaBrowser.Model | |
| parent | ba0eb8737140acec000d36aadd9018b86f319d1f (diff) | |
Adapt LrcLyricParser to new LrcParser version (#14263)
Diffstat (limited to 'MediaBrowser.Model')
| -rw-r--r-- | MediaBrowser.Model/Lyrics/LyricLineCue.cs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/MediaBrowser.Model/Lyrics/LyricLineCue.cs b/MediaBrowser.Model/Lyrics/LyricLineCue.cs index 1172a0231..291553361 100644 --- a/MediaBrowser.Model/Lyrics/LyricLineCue.cs +++ b/MediaBrowser.Model/Lyrics/LyricLineCue.cs @@ -8,22 +8,29 @@ public class LyricLineCue /// <summary> /// Initializes a new instance of the <see cref="LyricLineCue"/> class. /// </summary> - /// <param name="position">The start of the character index of the lyric.</param> + /// <param name="position">The start character index of the cue.</param> + /// <param name="endPosition">The end character index of the cue.</param> /// <param name="start">The start of the timestamp the lyric is synced to in ticks.</param> /// <param name="end">The end of the timestamp the lyric is synced to in ticks.</param> - public LyricLineCue(int position, long start, long? end) + public LyricLineCue(int position, int endPosition, long start, long? end) { Position = position; + EndPosition = endPosition; Start = start; End = end; } /// <summary> - /// Gets the character index of the lyric. + /// Gets the start character index of the cue. /// </summary> public int Position { get; } /// <summary> + /// Gets the end character index of the cue. + /// </summary> + public int EndPosition { get; } + + /// <summary> /// Gets the timestamp the lyric is synced to in ticks. /// </summary> public long Start { get; } |
