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,
|
||||
parentColumn = "songId",
|
||||
entityColumn = "artistId"
|
||||
)
|
||||
),
|
||||
projection = ["id", "name"]
|
||||
)
|
||||
val artists: List<Artist>?
|
||||
val artists: List<Info>?
|
||||
) {
|
||||
val formattedTotalPlayTime: String
|
||||
get() {
|
||||
|
|
|
@ -12,7 +12,7 @@ class DetailedSongWithContentLength(
|
|||
thumbnailUrl: String?,
|
||||
totalPlayTimeMs: Long = 0,
|
||||
albumId: String?,
|
||||
artists: List<Artist>?,
|
||||
artists: List<Info>?,
|
||||
@Relation(
|
||||
entity = Format::class,
|
||||
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