Do not return unused artist info in DetailedSong
This commit is contained in:
@@ -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
|
||||
)
|
||||
Reference in New Issue
Block a user