@@ -55,7 +55,7 @@ internal class ArtistImpl(private val core: ArtistCore) : Artist {
|
|||||||
get() = core.resolveGenres().toList()
|
get() = core.resolveGenres().toList()
|
||||||
|
|
||||||
override val durationMs = core.songs.sumOf { it.durationMs }
|
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 =
|
private val hashCode =
|
||||||
31 * (31 * uid.hashCode() + core.preArtist.hashCode()) * core.songs.hashCode()
|
31 * (31 * uid.hashCode() + core.preArtist.hashCode()) * core.songs.hashCode()
|
||||||
|
|||||||
Reference in New Issue
Block a user