jf-roku/components/data/RecordingData.bs

21 lines
454 B
Plaintext
Raw Normal View History

import "pkg:/source/utils/misc.bs"
2024-02-08 16:50:05 +00:00
sub setFields()
datum = m.top.json
m.top.id = datum.id
m.top.title = datum.name
m.top.showID = datum.SeriesID
m.top.seasonID = datum.SeasonID
m.top.overview = datum.overview
m.top.favorite = datum.UserData.isFavorite
end sub
sub setPoster()
if isValid(m.top.image)
2024-02-08 16:50:05 +00:00
m.top.posterURL = m.top.image.url
else
m.top.posterURL = ""
end if
end sub