jf-roku/components/data/ChannelData.brs

21 lines
608 B
Plaintext
Raw Normal View History

sub setFields()
json = m.top.json
m.top.id = json.id
2020-11-23 17:13:57 +00:00
m.top.title = json.name
2020-10-17 19:23:20 +00:00
m.top.live = true
m.top.Type = "TvChannel"
setPoster()
end sub
sub setPoster()
if m.top.image <> invalid
m.top.posterURL = m.top.image.url
else if m.top.json.ImageTags <> invalid and m.top.json.ImageTags.Primary <> invalid
2022-05-22 22:41:02 +00:00
imgParams = { "maxHeight": 60 }
2022-05-14 10:13:28 +00:00
m.top.hdsmalliconurl = ImageURL(m.top.json.id, "Primary", imgParams)
2022-05-22 22:41:02 +00:00
imgParams = { "maxHeight": 440, "maxWidth": 295 }
m.top.posterURL = ImageURL(m.top.json.id, "Primary", imgParams)
end if
end sub