Fetch audio-only video ids for albums (#88)

This commit is contained in:
vfsfitvnm
2022-07-08 14:52:28 +02:00
parent eb4e249443
commit 948bb97791
2 changed files with 42 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ fun AlbumScreen(
authorsText = youtubeAlbum.authors?.joinToString("") { it.name },
shareUrl = youtubeAlbum.url
).also(Database::upsert).also {
youtubeAlbum.items?.forEachIndexed { position, albumItem ->
youtubeAlbum.withAudioSources().items?.forEachIndexed { position, albumItem ->
albumItem.toMediaItem(browseId, youtubeAlbum)?.let { mediaItem ->
Database.insert(mediaItem)
Database.upsert(