Add direct IPTV streams to the retroLabs guide

This commit is contained in:
Josh
2026-11-13 16:16:17 -05:00
parent 41f863b0f8
commit 66e2406582
6 changed files with 62 additions and 5 deletions

View File

@@ -129,6 +129,7 @@ sub renderGuide()
m.top.FindNode("guideChannel" + suffix).text = channelLabel(channel)
m.top.FindNode("guideNow" + suffix).text = programTitle(current)
if channel.type = "weather" then m.top.FindNode("guideNow" + suffix).text = "Local weather"
if channel.type = "iptv" then m.top.FindNode("guideNow" + suffix).text = "Live stream"
nextTitle = programTitle(upcoming)
if upcoming <> invalid then nextTitle = guideTime(parseUtc(upcoming.start)) + " " + nextTitle
m.top.FindNode("guideNext" + suffix).text = nextTitle

View File

@@ -213,6 +213,7 @@ sub onSchedule(event as object)
m.schedule = data
syncClock(data.serverTime)
m.nowTitle.text = "NOW " + programTitle(data.now)
if m.channels[m.channelIndex].type = "iptv" then m.nowTitle.text = "LIVE"
m.nextTitle.text = "NEXT " + programTitle(data.next)
refreshClock()
end sub