Skip to content

Commit

Permalink
refactor: prioritise album artists over artists (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Dec 1, 2024
1 parent 510afa6 commit b592c48
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ class AlbumRepository(private val symphony: Symphony) {
Album(
id = albumId,
name = song.album!!,
artists = song.artists.toMutableSet(),
artists = mutableSetOf<String>().apply {
// ensure that album artists are first
addAll(song.albumArtists)
addAll(song.artists)
},
startYear = song.year,
endYear = song.year,
numberOfTracks = 1,
Expand Down

0 comments on commit b592c48

Please sign in to comment.