aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2024-02-28 17:29:44 -0700
committerCody Robibero <cody@robibe.ro>2024-02-28 17:34:33 -0700
commit169e0dcb113ac92d36f939002a1715d28ee0c545 (patch)
tree5743ca3acf046c868f0adbed9e24b250ae425bd2 /MediaBrowser.Controller
parentac33d1593a23b4b239bda483a4cfa36db70039e5 (diff)
Save embedded lyrics when probing audio
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/Lyrics/ILyricManager.cs17
1 files changed, 14 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/Lyrics/ILyricManager.cs b/MediaBrowser.Controller/Lyrics/ILyricManager.cs
index f4376a1ee..1e71b87eb 100644
--- a/MediaBrowser.Controller/Lyrics/ILyricManager.cs
+++ b/MediaBrowser.Controller/Lyrics/ILyricManager.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.IO;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Controller.Entities;
@@ -69,12 +70,22 @@ public interface ILyricManager
CancellationToken cancellationToken);
/// <summary>
- /// Upload new lyrics.
+ /// Saves new lyrics.
/// </summary>
/// <param name="audio">The audio file the lyrics belong to.</param>
- /// <param name="lyricResponse">The lyric response.</param>
+ /// <param name="format">The lyrics format.</param>
+ /// <param name="lyrics">The lyrics.</param>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
- Task<LyricDto?> UploadLyricAsync(Audio audio, LyricResponse lyricResponse);
+ Task<LyricDto?> SaveLyricAsync(Audio audio, string format, string lyrics);
+
+ /// <summary>
+ /// Saves new lyrics.
+ /// </summary>
+ /// <param name="audio">The audio file the lyrics belong to.</param>
+ /// <param name="format">The lyrics format.</param>
+ /// <param name="lyrics">The lyrics.</param>
+ /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
+ Task<LyricDto?> SaveLyricAsync(Audio audio, string format, Stream lyrics);
/// <summary>
/// Get the remote lyrics.