Update format.js
This commit is contained in:
parent
80ce577313
commit
7888841f17
|
@ -237,8 +237,13 @@ function updateLogo(channel, data, epgData) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTvgLanguage(channel, data) {
|
function updateTvgLanguage(channel, data) {
|
||||||
if (!channel.tvg.language && data) {
|
if (!channel.tvg.language) {
|
||||||
channel.tvg.language = data.languages.map(l => l.name).join(';')
|
if (data) {
|
||||||
|
channel.tvg.language = data.languages.map(l => l.name).join(';')
|
||||||
|
} else if (channel.countries.length) {
|
||||||
|
const countryCode = channel.countries[0].code
|
||||||
|
channel.tvg.language = utils.country2language(countryCode)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue