musikr: reformat
This commit is contained in:
parent
b573fd2260
commit
b8733a180c
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@ 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 }.ifEmpty { core.albums.flatMap { it.covers.covers } })
|
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()
|
||||||
|
|
Loading…
Reference in a new issue