Skip to content

Commit

Permalink
Fixed z-huang#1184
Browse files Browse the repository at this point in the history
  • Loading branch information
Malopieds committed Dec 29, 2023
1 parent 3fa4229 commit 8c56fde
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ data class SearchSummaryPage(
title = renderer.flexColumns.firstOrNull()
?.musicResponsiveListItemFlexColumnRenderer?.text?.runs
?.firstOrNull()?.text ?: return null,
artists = secondaryLine.getOrNull(1)?.oddElements()?.map {
artists = secondaryLine.getOrNull(0)?.oddElements()?.map {
Artist(
name = it.text,
id = it.navigationEndpoint?.browseEndpoint?.browseId
)
} ?: return null,
album = secondaryLine.getOrNull(2)?.firstOrNull()?.takeIf { it.navigationEndpoint?.browseEndpoint != null }?.let {
album = secondaryLine.getOrNull(1)?.firstOrNull()?.takeIf { it.navigationEndpoint?.browseEndpoint != null }?.let {
Album(
name = it.text,
id = it.navigationEndpoint?.browseEndpoint?.browseId!!
Expand Down

0 comments on commit 8c56fde

Please sign in to comment.