Do not return unused artist info in DetailedSong
This commit is contained in:
parent
8ae7bd96f5
commit
92b3cc2b33
3 changed files with 10 additions and 3 deletions
|
@ -27,9 +27,10 @@ open class DetailedSong(
|
||||||
value = SongArtistMap::class,
|
value = SongArtistMap::class,
|
||||||
parentColumn = "songId",
|
parentColumn = "songId",
|
||||||
entityColumn = "artistId"
|
entityColumn = "artistId"
|
||||||
)
|
),
|
||||||
|
projection = ["id", "name"]
|
||||||
)
|
)
|
||||||
val artists: List<Artist>?
|
val artists: List<Info>?
|
||||||
) {
|
) {
|
||||||
val formattedTotalPlayTime: String
|
val formattedTotalPlayTime: String
|
||||||
get() {
|
get() {
|
||||||
|
|
|
@ -12,7 +12,7 @@ class DetailedSongWithContentLength(
|
||||||
thumbnailUrl: String?,
|
thumbnailUrl: String?,
|
||||||
totalPlayTimeMs: Long = 0,
|
totalPlayTimeMs: Long = 0,
|
||||||
albumId: String?,
|
albumId: String?,
|
||||||
artists: List<Artist>?,
|
artists: List<Info>?,
|
||||||
@Relation(
|
@Relation(
|
||||||
entity = Format::class,
|
entity = Format::class,
|
||||||
entityColumn = "songId",
|
entityColumn = "songId",
|
||||||
|
|
6
app/src/main/kotlin/it/vfsfitvnm/vimusic/models/Info.kt
Normal file
6
app/src/main/kotlin/it/vfsfitvnm/vimusic/models/Info.kt
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
package it.vfsfitvnm.vimusic.models
|
||||||
|
|
||||||
|
data class Info(
|
||||||
|
val id: String,
|
||||||
|
val name: String
|
||||||
|
)
|
Loading…
Reference in a new issue