Skip to content

The Free Software Media System - Server Backend & API

Merge remote-tracking branch 'origin/lyric-lrc-file-support' into lyric-lrc-file-support

1hitsong23ec35d3965e
diff --cc Jellyfin.Api/Controllers/UserLibraryController.cs
index afd4013ed3,7830df9bc9..ed8a98d23f
--- a/Jellyfin.Api/Controllers/UserLibraryController.cs
+++ b/Jellyfin.Api/Controllers/UserLibraryController.cs
@@@ -414,17 -411,13 +410,13 @@@ namespace Jellyfin.Api.Controller
if (item == null)
{
- List<Lyrics> lyricsList = new List<Lyrics>
- {
- new Lyrics { Error = "Requested Item Not Found" }
- };
- return NotFound(new { Results = lyricsList.ToArray() });
+ return NotFound();
}
- List<Lyrics> result = ItemHelper.GetLyricData(item);
- if (string.IsNullOrEmpty(result.ElementAt(0).Error))
+ var result = ItemHelper.GetLyricData(item);
+ if (result is not null)
{
- return Ok(new { Results = result });
+ return Ok(result);
}
return NotFound();