Release 1.0.0.4: album artists, credits, artist genres, maintenance task

This commit is contained in:
1xDed committed 2026-11-27 19:38:01 +03:00
1 parent 84e3ea34c8
commit 0dbf427ce1
17 files changed
+332 -14

No files matched your search

@@ -71,7 +71,11 @@ public class YandexMusicAlbumProvider : IRemoteMetadataProvider<MusicAlbum, Albu
item.AlbumArtists = artists;
item.ProductionYear = Mapping.ValidYear(album.Year) ?? info.Year;
item.PremiereDate = Mapping.ParseReleaseDate(album.ReleaseDate);
item.Genres = await Mapping.GenresAsync(_client, album.Genre, null, cancellationToken)
var primaryGenreArtist = album.Artists.FirstOrDefault(a => a.Id > 0);
var albumArtistGenres = primaryGenreArtist is null
? Array.Empty<string>()
: await _client.GetArtistGenresAsync(primaryGenreArtist.Id, cancellationToken).ConfigureAwait(false);
item.Genres = await Mapping.GenresAsync(_client, album.Genre, albumArtistGenres, cancellationToken)
.ConfigureAwait(false);
var labels = Mapping.Labels(album);