Merge pull request #2017 from michaelcresswell/livetv-channel-name

This commit is contained in:
Charles Ewert 2024-11-07 21:39:20 -05:00 committed by GitHub
commit 033428b399
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -5,7 +5,11 @@ import "pkg:/source/utils/config.bs"
sub setFields()
json = m.top.json
m.top.id = json.id
m.top.title = json.name
if isValid(json.number)
m.top.title = `${tr("CH")} ${json.number} ${json.name}`
else
m.top.title = json.name
end if
m.top.live = true
m.top.Type = "TvChannel"
setPoster()

View File

@ -1371,5 +1371,10 @@
<translation>Special</translation>
<extracomment>Special episode of a TV Show</extracomment>
</message>
<message>
<source>CH</source>
<translation>CH</translation>
<extracomment>Abbreviation for Channel</extracomment>
</message>
</context>
</TS>