Skip to content

Commit

Permalink
Only show the "Next Episode" button for episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Oct 29, 2023
1 parent dded75f commit 21b3fce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/video/VideoPlayerView.brs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ end sub

' Checks if we need to display the Next Episode button
sub checkTimeToDisplayNextEpisode()
' only display the Next Episode button when the content is type "Episode"
if m.top.content.contenttype <> 4 then return

if int(m.top.position) >= (m.top.duration - 30)
showNextEpisodeButton()
updateCount()
Expand Down

0 comments on commit 21b3fce

Please sign in to comment.