musikr.model: use genre core

This commit is contained in:
Alexander Capehart 2024-12-16 15:50:10 -05:00
parent 4421f4f56d
commit 50bfe9926b
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -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)