diff --git a/components/data/ChannelData.brs b/components/data/ChannelData.brs new file mode 100644 index 00000000..c8690780 --- /dev/null +++ b/components/data/ChannelData.brs @@ -0,0 +1,15 @@ +sub setFields() + json = m.top.json + + m.top.id = json.id + m.top.title = json.name + m.top.live = true +end sub + +sub setPoster() + if m.top.image <> invalid + m.top.posterURL = m.top.image.url + else + m.top.posterURL = "" + end if +end sub diff --git a/components/data/ChannelData.xml b/components/data/ChannelData.xml new file mode 100644 index 00000000..4f291be3 --- /dev/null +++ b/components/data/ChannelData.xml @@ -0,0 +1,11 @@ + + + + + + + + + +