parent
7b5510e3a8
commit
b95e9e25f6
@ -49,8 +49,13 @@ function parseIndex() {
|
|||||||
|
|
||||||
// languages
|
// languages
|
||||||
const languageNames = item.tvg.language || 'Undefined'
|
const languageNames = item.tvg.language || 'Undefined'
|
||||||
for (let languageName of item.tvg.language.split(';')) {
|
for (let languageName of languageNames.split(';')) {
|
||||||
const languageCode = helper.getISO6391Code(languageName) || 'undefined'
|
let languageCode = 'undefined'
|
||||||
|
if (languageName !== 'Undefined') {
|
||||||
|
languageCode = helper.getISO6391Code(languageName)
|
||||||
|
if (!languageCode) continue
|
||||||
|
}
|
||||||
|
|
||||||
if (languages[languageCode]) {
|
if (languages[languageCode]) {
|
||||||
languages[languageCode].channels++
|
languages[languageCode].channels++
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user