jf-roku/components/tvshows/TVEpisodes.brs
2020-12-08 15:05:22 -05:00

22 lines
575 B
Plaintext

sub init()
m.top.optionsAvailable = false
end sub
sub setSeason()
m.top.overhangTitle = m.top.seasonData.SeriesName + " - " + m.top.seasonData.name
end sub
function onKeyEvent(key as string, press as boolean) as boolean
handled = false
if press then
if key = "play" then
itemToPlay = m.top.focusedChild.content.getChild(m.top.focusedChild.rowItemFocused[0]).getChild(0)
if itemToPlay <> invalid and itemToPlay.id <> "" then
m.top.quickPlayNode = itemToPlay
end if
handled = true
end if
end if
return handled
end function