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

This commit is contained in:
JQ 2025-04-07 04:18:39 +08:00 committed by GitHub
parent 2c9c9f591d
commit fe79384cd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 3 deletions

View File

@ -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; }

View File

@ -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
};

View File

@ -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,