diff options
| author | Cody Robibero <cody@robibe.ro> | 2024-02-28 17:29:44 -0700 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2024-02-28 17:34:33 -0700 |
| commit | 169e0dcb113ac92d36f939002a1715d28ee0c545 (patch) | |
| tree | 5743ca3acf046c868f0adbed9e24b250ae425bd2 /Jellyfin.Api/Controllers | |
| parent | ac33d1593a23b4b239bda483a4cfa36db70039e5 (diff) | |
Save embedded lyrics when probing audio
Diffstat (limited to 'Jellyfin.Api/Controllers')
| -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) { |
