Skip to content

Commit

Permalink
changed album upsert from asSong to asMediaItem. it fixes wrong artis…
Browse files Browse the repository at this point in the history
…t names and mapping
  • Loading branch information
aneesh1122 committed Feb 5, 2025
1 parent dd89e3d commit dd3601b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ fun AlbumScreen(
),
currentAlbumPage
.songs.distinct()
.map(Innertube.SongItem::asSong)
.map(Innertube.SongItem::asMediaItem)
.onEach(Database::insert)
.mapIndexed { position, song ->
.mapIndexed { position, mediaItem ->
SongAlbumMap(
songId = song.id,
songId = mediaItem.mediaId,
albumId = browseId,
position = position
)
Expand Down

0 comments on commit dd3601b

Please sign in to comment.