diff --git a/allstarr/Controllers/JellyfinController.cs b/allstarr/Controllers/JellyfinController.cs index 8cb5348..5fafbd7 100644 --- a/allstarr/Controllers/JellyfinController.cs +++ b/allstarr/Controllers/JellyfinController.cs @@ -1062,13 +1062,26 @@ public class JellyfinController : ControllerBase } } } + else if (!string.IsNullOrEmpty(lyricsText)) + { + // Plain lyrics - split by newlines and return each line separately + var lines = lyricsText.Split(new[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries); + foreach (var line in lines) + { + lyricLines.Add(new + { + Start = (long?)null, + Text = line.Trim() + }); + } + } else { - // Plain lyrics - return as single block + // No lyrics at all lyricLines.Add(new { Start = (long?)null, - Text = lyricsText + Text = "" }); }