From 169e0dcb113ac92d36f939002a1715d28ee0c545 Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Wed, 28 Feb 2024 17:29:44 -0700 Subject: Save embedded lyrics when probing audio --- Jellyfin.Api/Controllers/LyricsController.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Jellyfin.Api/Controllers/LyricsController.cs') diff --git a/Jellyfin.Api/Controllers/LyricsController.cs b/Jellyfin.Api/Controllers/LyricsController.cs index 4fccf2cb4..f2b312b47 100644 --- a/Jellyfin.Api/Controllers/LyricsController.cs +++ b/Jellyfin.Api/Controllers/LyricsController.cs @@ -146,13 +146,11 @@ public class LyricsController : BaseJellyfinApiController await using (stream.ConfigureAwait(false)) { await Request.Body.CopyToAsync(stream).ConfigureAwait(false); - var uploadedLyric = await _lyricManager.UploadLyricAsync( - audio, - new LyricResponse - { - Format = format, - Stream = stream - }).ConfigureAwait(false); + var uploadedLyric = await _lyricManager.SaveLyricAsync( + audio, + format, + stream) + .ConfigureAwait(false); if (uploadedLyric is null) { -- cgit v1.2.3