diff options
| author | Bond-009 <bond.009@outlook.com> | 2024-03-03 07:52:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-03 07:52:23 -0500 |
| commit | 35df0486f5217eef1bbc126bde036dab6759dfbf (patch) | |
| tree | efa9e8ba5ee9842046f8abcc6f2861c09f0d075a /Jellyfin.Api/Controllers/LyricsController.cs | |
| parent | 714a350913d3e9c22ed842cfec81528a712d2eb5 (diff) | |
| parent | 169e0dcb113ac92d36f939002a1715d28ee0c545 (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.cs | 12 |
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) { |
