Skip to content

Commit

Permalink
fix(player): Properly show audio tracks in offline videos (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
quickdesh authored Nov 2, 2023
1 parent 67a5bcc commit e728a60
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ fun TracksCatalogSheet(
onTrackSelected = onAudioSelected,
)

when {
isEpisodeOnline == true && page == 0 -> QualityTracksPage()
page == 0 || page == 1 -> SubtitleTracksPage()
page == 2 -> AudioTracksPage()
when (page) {
0 -> if (isEpisodeOnline == true) QualityTracksPage() else SubtitleTracksPage()
1 -> if (isEpisodeOnline == true) SubtitleTracksPage() else AudioTracksPage()
2 -> if (isEpisodeOnline == true) AudioTracksPage()
}
}
}
Expand Down

0 comments on commit e728a60

Please sign in to comment.