jf-roku/components/tvshows/data-show.xml
2019-03-14 12:11:51 -05:00

31 lines
929 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<component name="TVShowData" extends="ContentNode">
<interface>
<field id="title" type="string" />
<field id="posterUrl" type="string" />
<field id="showID" type="string" />
<field id="description" type="string" />
<field id="seasons" type="associativearray" />
<field id="nextup" type="associativearray" />
<field id="full_data" type="associativearray" onChange="setFields" />
<function name="loadSeasons" />
</interface>
<script type="text/brightscript">
<![CDATA[
sub setFields()
datum = m.top.full_data
m.top.title = datum.name
m.top.showID = datum.id
if datum.posterURL <> invalid
m.top.posterURL = datum.posterURL
else
m.top.posterURL = ""
end if
m.top.description = datum.overview
'm.top.seasons = TVSeasons(datum.id)
'm.top.nextup = TVNext(datum.id)
end sub
]]>
</script>
</component>