Skip to content

Commit 54ae4c0

Browse files
committed
Update code docs
1 parent f10ab89 commit 54ae4c0

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

docs/components_video_OSD.bs.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -306,16 +306,19 @@
306306
currentProgram = ParseJson(m.top.currentProgram)
307307

308308
if isValidAndNotEmpty(currentProgram)
309-
' set video title to current program name
310-
if isValid(currentProgram.Name)
311-
currentChannel = createSubtitleLabelNode("currentChannel")
312-
currentChannel.text = currentProgram.ChannelName
309+
' Channel Number i.e. "CH 300"
310+
if isValid(currentProgram.ChannelNumber) and currentProgram.ChannelNumber <> ""
311+
currentChannelNumber = createSubtitleLabelNode("currentChannelNumber")
312+
currentChannelNumber.text = tr("CH") + ` ${currentProgram.ChannelNumber}`
313313

314-
if isValid(currentProgram.ChannelNumber) and currentProgram.ChannelNumber <> ""
315-
currentChannel.text = `${currentChannel.text} (${currentProgram.ChannelNumber})`
316-
end if
314+
displaySubtitleNode(currentChannelNumber)
315+
end if
316+
' Channel Name
317+
if isValid(currentProgram.Name)
318+
currentChannelName = createSubtitleLabelNode("currentChannelName")
319+
currentChannelName.text = currentProgram.ChannelName
317320

318-
displaySubtitleNode(currentChannel)
321+
displaySubtitleNode(currentChannelName)
319322
end if
320323
end if
321324
end if

0 commit comments

Comments
 (0)