Update room version

This commit is contained in:
vfsfitvnm
2022-08-30 10:54:33 +02:00
parent c94d05cd90
commit 14a0577d51
3 changed files with 23 additions and 34 deletions

View File

@@ -98,21 +98,18 @@ fun AlbumScreen(browseId: String) {
authorsText = youtubeAlbum.authors?.joinToString("") { it.name },
shareUrl = youtubeAlbum.url,
timestamp = System.currentTimeMillis()
)
)
youtubeAlbum.items?.forEachIndexed { position, albumItem ->
albumItem.toMediaItem(browseId, youtubeAlbum)?.let { mediaItem ->
Database.insert(mediaItem)
Database.upsert(
),
youtubeAlbum.items?.mapIndexedNotNull { position, albumItem ->
albumItem.toMediaItem(browseId, youtubeAlbum)?.let { mediaItem ->
Database.insert(mediaItem)
SongAlbumMap(
songId = mediaItem.mediaId,
albumId = browseId,
position = position
)
)
}
}
}
} ?: emptyList()
)
null
}