aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LyricsController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2024-03-03 07:52:23 -0500
committerGitHub <noreply@github.com>2024-03-03 07:52:23 -0500
commit35df0486f5217eef1bbc126bde036dab6759dfbf (patch)
treeefa9e8ba5ee9842046f8abcc6f2861c09f0d075a /Jellyfin.Api/Controllers/LyricsController.cs
parent714a350913d3e9c22ed842cfec81528a712d2eb5 (diff)
parent169e0dcb113ac92d36f939002a1715d28ee0c545 (diff)
Merge pull request #11081 from crobibero/embedded-lyrics
Save embedded lyrics when probing audio
Diffstat (limited to 'Jellyfin.Api/Controllers/LyricsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LyricsController.cs12
1 files changed, 5 insertions, 7 deletions
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)
{