Skip to content

Commit

Permalink
Merge pull request #1600 from jimdogx/fix/jf-live-tv-not-guide
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Jan 2, 2024
2 parents 769c5f4 + 19c92f3 commit 0947dea
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions components/ItemGrid/LoadVideoContentTask.bs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,21 @@ 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.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 0947dea

Please sign in to comment.