diff options
| author | 1hitsong <3330318+1hitsong@users.noreply.github.com> | 2022-09-22 08:13:53 -0400 |
|---|---|---|
| committer | 1hitsong <3330318+1hitsong@users.noreply.github.com> | 2022-09-22 08:13:53 -0400 |
| commit | a50bdb47709be0412b3abb2729f8c657b5d0c779 (patch) | |
| tree | d5d261858c3248246014a80db58e004f3140ed57 /MediaBrowser.Controller/Lyrics | |
| parent | 35399ce8fef0559f65bee4f519c582d192a04e52 (diff) | |
Use async functions
Diffstat (limited to 'MediaBrowser.Controller/Lyrics')
| -rw-r--r-- | MediaBrowser.Controller/Lyrics/ILyricManager.cs | 5 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Lyrics/ILyricProvider.cs | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Lyrics/ILyricManager.cs b/MediaBrowser.Controller/Lyrics/ILyricManager.cs index 5920bcc62..bb93e1e4c 100644 --- a/MediaBrowser.Controller/Lyrics/ILyricManager.cs +++ b/MediaBrowser.Controller/Lyrics/ILyricManager.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using MediaBrowser.Controller.Entities; namespace MediaBrowser.Controller.Lyrics; @@ -11,8 +12,8 @@ public interface ILyricManager /// Gets the lyrics. /// </summary> /// <param name="item">The media item.</param> - /// <returns>Lyrics for passed item.</returns> - LyricResponse? GetLyrics(BaseItem item); + /// <returns>A task representing found lyrics the passed item.</returns> + Task<LyricResponse?> GetLyrics(BaseItem item); /// <summary> /// Checks if requested item has a matching local lyric file. diff --git a/MediaBrowser.Controller/Lyrics/ILyricProvider.cs b/MediaBrowser.Controller/Lyrics/ILyricProvider.cs index c5b625226..2a04c6152 100644 --- a/MediaBrowser.Controller/Lyrics/ILyricProvider.cs +++ b/MediaBrowser.Controller/Lyrics/ILyricProvider.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Threading.Tasks; using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Resolvers; @@ -30,6 +31,6 @@ public interface ILyricProvider /// Gets the lyrics. /// </summary> /// <param name="item">The media item.</param> - /// <returns>If found, returns lyrics for passed item; otherwise, null.</returns> - LyricResponse? GetLyrics(BaseItem item); + /// <returns>A task representing found lyrics.</returns> + Task<LyricResponse?> GetLyrics(BaseItem item); } |
