diff --git a/components/ItemGrid/LoadVideoContentTask.bs b/components/ItemGrid/LoadVideoContentTask.bs index 4e65bdbd2..ede5a62d4 100644 --- a/components/ItemGrid/LoadVideoContentTask.bs +++ b/components/ItemGrid/LoadVideoContentTask.bs @@ -77,6 +77,22 @@ sub LoadItems_AddVideoContent(video as object, mediaSourceId as dynamic, audio_s videotype = LCase(meta.type) + ' Check for any Live TV streams coming from other places other than the TV Guide + if isValid(meta.json) and isValid(meta.json.ChannelId) + if isValid(meta.json.EpisodeTitle) + meta.title = meta.json.EpisodeTitle + else if isValid(meta.json.Name) + meta.title = meta.json.Name + end if + meta.showID = meta.json.id + meta.live = true + if LCase(meta.json.type) = "program" + video.id = meta.json.ChannelId + else + video.id = meta.json.id + end if + end if + if videotype = "episode" or videotype = "series" video.content.contenttype = "episode" end if