music: temp populate cover field

Again, will reimpl later
This commit is contained in:
Alexander Capehart 2024-11-26 20:18:53 -07:00
parent c87ff7bb92
commit c74b744aec
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -121,6 +121,7 @@ class AlbumImpl(linkedAlbum: LinkedAlbum) : Album {
} ?: Date.Range(song.date, song.date)
}
hashCode = 31 * hashCode + song.hashCode()
cover = ParentCover(song.cover, emptyList())
}
}
@ -174,6 +175,7 @@ class ArtistImpl(private val preArtist: PreArtist) : Artist {
implicitAlbums.add(song.album)
}
hashCode = 31 * hashCode + song.hashCode()
cover = ParentCover(song.cover, emptyList())
}
fun link(album: AlbumImpl) {
@ -210,5 +212,6 @@ class GenreImpl(private val preGenre: PreGenre) : Genre {
artists.addAll(song.artists)
durationMs += song.durationMs
hashCode = 31 * hashCode + song.hashCode()
cover = ParentCover(song.cover, emptyList())
}
}