musikr.model: use genre core
This commit is contained in:
parent
4421f4f56d
commit
50bfe9926b
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ internal class GenreImpl(private val core: GenreCore) : Genre {
|
|||
override val uid = Music.UID.auxio(Music.UID.Item.GENRE) { update(core.preGenre.rawName) }
|
||||
override val name = core.preGenre.name
|
||||
|
||||
override val songs = mutableSetOf<Song>()
|
||||
override val artists = mutableSetOf<Artist>()
|
||||
override val songs = core.songs
|
||||
override val artists = core.artists
|
||||
override val durationMs = core.songs.sumOf { it.durationMs }
|
||||
override val cover = Cover.multi(core.songs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue