jf-roku/components/tvshows/TVEpisodes.brs

22 lines
612 B
Plaintext
Raw Normal View History

2020-02-23 04:47:00 +00:00
sub init()
2021-07-09 20:08:32 +00:00
m.top.optionsAvailable = false
2020-02-23 04:47:00 +00:00
end sub
sub setSeason()
2021-07-09 20:08:32 +00:00
m.top.overhangTitle = m.top.seasonData.SeriesName + " - " + m.top.seasonData.name
2020-02-23 04:47:00 +00:00
end sub
function onKeyEvent(key as string, press as boolean) as boolean
2021-07-09 20:08:32 +00:00
handled = false
if press
if key = "play"
itemToPlay = m.top.focusedChild.content.getChild(m.top.focusedChild.rowItemFocused[0]).getChild(0)
if itemToPlay <> invalid and itemToPlay.id <> ""
m.top.quickPlayNode = itemToPlay
end if
handled = true
end if
end if
2021-07-09 20:08:32 +00:00
return handled
end function