mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 15:48:03 +00:00
Returns album artists apart from artist names when doing a lyrics search (#13852)
Some checks are pending
CodeQL / Analyze (csharp) (push) Waiting to run
OpenAPI / OpenAPI - HEAD (push) Waiting to run
OpenAPI / OpenAPI - BASE (push) Waiting to run
OpenAPI / OpenAPI - Difference (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Unstable Spec (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Stable Spec (push) Blocked by required conditions
Tests / run-tests (macos-latest) (push) Waiting to run
Tests / run-tests (ubuntu-latest) (push) Waiting to run
Tests / run-tests (windows-latest) (push) Waiting to run
Project Automation / Project board (push) Waiting to run
Merge Conflict Labeler / Labeling (push) Waiting to run
Some checks are pending
CodeQL / Analyze (csharp) (push) Waiting to run
OpenAPI / OpenAPI - HEAD (push) Waiting to run
OpenAPI / OpenAPI - BASE (push) Waiting to run
OpenAPI / OpenAPI - Difference (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Unstable Spec (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Stable Spec (push) Blocked by required conditions
Tests / run-tests (macos-latest) (push) Waiting to run
Tests / run-tests (ubuntu-latest) (push) Waiting to run
Tests / run-tests (windows-latest) (push) Waiting to run
Project Automation / Project board (push) Waiting to run
Merge Conflict Labeler / Labeling (push) Waiting to run
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user