Update format.js

This commit is contained in:
freearhey 2021-01-29 22:16:18 +03:00
parent 854e19a4a6
commit a1dfa0f942
1 changed files with 2 additions and 2 deletions

View File

@ -172,8 +172,8 @@ async function updateFromEPG(playlist) {
if (!channel.tvg.name && epgItem.name.length) { if (!channel.tvg.name && epgItem.name.length) {
channel.tvg.name = epgItem.name[0].value channel.tvg.name = epgItem.name[0].value
} }
if (!channel.language.length && epgItem.name.length && epgItem.name[0].lang) { if (!channel.languages.length && epgItem.name.length && epgItem.name[0].lang) {
channel.setLanguage(epgItem.name[0].lang) channel.languages = helper.parseLanguages(epgItem.name[0].lang)
} }
if (!channel.logo && epgItem.icon.length) { if (!channel.logo && epgItem.icon.length) {
channel.logo = epgItem.icon[0] channel.logo = epgItem.icon[0]