Skip to content

Commit

Permalink
Check for Live TV
Browse files Browse the repository at this point in the history
  • Loading branch information
jimdogx committed Dec 24, 2023
1 parent 0a97440 commit a90df38
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions components/ItemGrid/LoadVideoContentTask.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a90df38

Please sign in to comment.