فهرست منبع

Returns album artists apart from artist names when doing a lyrics search (#13852)

JQ 1 ماه پیش
والد
کامیت
fe79384cd5

+ 6 - 1
MediaBrowser.Model/Lyrics/LyricSearchRequest.cs

@@ -15,7 +15,12 @@ public class LyricSearchRequest : IHasProviderIds
     public string? MediaPath { get; set; }
 
     /// <summary>
-    /// Gets or sets the artist name.
+    /// Gets or sets the album artist names.
+    /// </summary>
+    public IReadOnlyList<string>? AlbumArtistsNames { get; set; }
+
+    /// <summary>
+    /// Gets or sets the artist names.
     /// </summary>
     public IReadOnlyList<string>? ArtistNames { get; set; }
 

+ 2 - 1
MediaBrowser.Providers/Lyric/LyricManager.cs

@@ -78,7 +78,8 @@ public class LyricManager : ILyricManager
             MediaPath = audio.Path,
             SongName = audio.Name,
             AlbumName = audio.Album,
-            ArtistNames = audio.GetAllArtists().ToList(),
+            AlbumArtistsNames = audio.AlbumArtists,
+            ArtistNames = audio.Artists,
             Duration = audio.RunTimeTicks,
             IsAutomated = isAutomated
         };

+ 2 - 1
MediaBrowser.Providers/Lyric/LyricScheduledTask.cs

@@ -117,7 +117,8 @@ public class LyricScheduledTask : IScheduledTask
                                         MediaPath = audioItem.Path,
                                         SongName = audioItem.Name,
                                         AlbumName = audioItem.Album,
-                                        ArtistNames = audioItem.GetAllArtists().ToList(),
+                                        AlbumArtistsNames = audioItem.AlbumArtists,
+                                        ArtistNames = audioItem.Artists,
                                         Duration = audioItem.RunTimeTicks,
                                         IsAutomated = true,
                                         DisabledLyricFetchers = libraryOptions.DisabledLyricFetchers,