Revert "feat: Deezer artist photo fallback for local artists with no Navidrome image"
This reverts commit 569af968c5.
This commit is contained in:
1 parent
569af968c5
commit
e059c358b3
5 files changed
+12
-26
No files matched your search
@@ -218,10 +218,7 @@ fun ArtistDetailScreen(
|
||||
|
||||
// Hero card
|
||||
item {
|
||||
// Navidrome's own artist image first; if its agents have none (niche artists like N!GHT),
|
||||
// fall back to the matched Deezer artist photo, then the album cover.
|
||||
val imgUrl = state.info?.largeImageUrl?.takeIf { it.isNotBlank() }
|
||||
?: state.deezerImage
|
||||
?: coverUrl(artist.coverArt)
|
||||
Box(
|
||||
Modifier
|
||||
|
||||
@@ -43,8 +43,6 @@ data class ArtistUiState(
|
||||
val showEventsSheet: Boolean = false,
|
||||
// Deezer fan count of the matched artist (shown under the name), null if unknown
|
||||
val fanCount: Long? = null,
|
||||
// Deezer artist photo — hero fallback when Navidrome's agents have no image (niche artists)
|
||||
val deezerImage: String? = null,
|
||||
// Preview + download
|
||||
val previewingId: Long? = null,
|
||||
val downloadSheetItem: ItunesItem? = null,
|
||||
@@ -123,10 +121,7 @@ class ArtistViewModel(app: Application, savedState: SavedStateHandle) : AndroidV
|
||||
?: artists.firstOrNull()
|
||||
)
|
||||
val iArtistId = iArtist?.artistId
|
||||
if (iArtist != null) _state.value = _state.value.copy(
|
||||
fanCount = iArtist.fanCount ?: _state.value.fanCount,
|
||||
deezerImage = iArtist.artworkUrl100?.takeIf { it.isNotBlank() } ?: _state.value.deezerImage,
|
||||
)
|
||||
if (iArtist?.fanCount != null) _state.value = _state.value.copy(fanCount = iArtist.fanCount)
|
||||
|
||||
if (iArtistId != null) {
|
||||
coroutineScope {
|
||||
|
||||
Reference in new issue
Block a user