parent
436ef8de91
commit
b573fd2260
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ internal class ArtistImpl(private val core: ArtistCore) : Artist {
|
|||
get() = core.resolveGenres().toList()
|
||||
|
||||
override val durationMs = core.songs.sumOf { it.durationMs }
|
||||
override val covers = CoverCollection.from(core.songs.mapNotNull { it.cover })
|
||||
override val covers = CoverCollection.from(core.songs.mapNotNull { it.cover }.ifEmpty { core.albums.flatMap { it.covers.covers } })
|
||||
|
||||
private val hashCode =
|
||||
31 * (31 * uid.hashCode() + core.preArtist.hashCode()) * core.songs.hashCode()
|
||||
|
|
Loading…
Reference in a new issue