Working v1

This commit is contained in:
jimiatnymbl 2021-12-17 23:03:33 -07:00
parent 8c0fb4a11f
commit b56bc03d90
3 changed files with 10 additions and 2 deletions

View File

@ -112,7 +112,7 @@ sub Main (args as dynamic) as void
else if selectedItem.type = "Movie"
' open movie detail page
group = CreateMovieDetailsGroup(selectedItem)
else if selectedItem.type = "TvChannel" or selectedItem.type = "Video"
else if selectedItem.type = "TvChannel" or selectedItem.type = "Video" or selectedItem.type = "Program"
' play channel feed
video_id = selectedItem.id

View File

@ -26,6 +26,14 @@ sub AddVideoContent(video, audio_stream_idx = 1, subtitle_idx = -1, playbackPosi
return
end if
' Special handling for "Programs" launched from "On Now"
if meta.json.type = "Program"
meta.title = meta.json.EpisodeTitle
meta.showID = meta.json.id
meta.live = true
video.id = meta.json.ChannelId
end if
video.content.title = meta.title
video.showID = meta.showID

View File

@ -107,7 +107,7 @@ function ItemMetaData(id as string)
tmp.image = PosterImage(data.id)
tmp.json = data
return tmp
else if data.type = "TvChannel"
else if data.type = "TvChannel" or data.type = "Program"
tmp = CreateObject("roSGNode", "ChannelData")
tmp.image = PosterImage(data.id)
tmp.json = data