fix(album): update albums previously cached with wrong api format

This commit is contained in:
Lukas Rysavy 2024-07-07 11:45:10 +02:00
parent e5d03e7075
commit 0812665324
No known key found for this signature in database
GPG key ID: 4CDA990C8F16A650

View file

@ -67,7 +67,7 @@ fun AlbumScreen(browseId: String) {
.collect { (currentAlbum, tabIndex) -> .collect { (currentAlbum, tabIndex) ->
album = currentAlbum album = currentAlbum
if (albumPage == null && (currentAlbum?.timestamp == null || tabIndex == 1)) { if (albumPage == null && (currentAlbum?.timestamp == null || currentAlbum.title == null || tabIndex == 1)) {
withContext(Dispatchers.IO) { withContext(Dispatchers.IO) {
Innertube.albumPage(BrowseBody(browseId = browseId)) Innertube.albumPage(BrowseBody(browseId = browseId))
?.onSuccess { currentAlbumPage -> ?.onSuccess { currentAlbumPage ->