Release 1.0.0.5: artist people links
This commit is contained in:
1 parent
0dbf427ce1
commit
230616e4fc
8 files changed
+55
-12
No files matched your search
@@ -91,6 +91,25 @@ public class YandexMusicSongProvider : IRemoteMetadataProvider<Audio, SongInfo>,
|
||||
|
||||
audio.Artists = artistNames;
|
||||
audio.AlbumArtists = albumArtistNames;
|
||||
|
||||
foreach (var name in artistNames)
|
||||
{
|
||||
result.AddPerson(new MediaBrowser.Controller.Entities.PersonInfo
|
||||
{
|
||||
Name = name,
|
||||
Type = Jellyfin.Data.Enums.PersonKind.Artist
|
||||
});
|
||||
}
|
||||
|
||||
foreach (var name in albumArtistNames)
|
||||
{
|
||||
result.AddPerson(new MediaBrowser.Controller.Entities.PersonInfo
|
||||
{
|
||||
Name = name,
|
||||
Type = Jellyfin.Data.Enums.PersonKind.AlbumArtist
|
||||
});
|
||||
}
|
||||
|
||||
AlbumArtistCache.Set(info.Path, albumArtistNames);
|
||||
audio.Album = config.UseYandexAlbumName
|
||||
? album?.Title ?? info.Album
|
||||
|
||||
Reference in new issue
Block a user