|
|
@ -33,6 +33,7 @@ function parseIndex() {
|
|
|
|
const countryCode = util.getBasename(rootItem.url).toUpperCase()
|
|
|
|
const countryCode = util.getBasename(rootItem.url).toUpperCase()
|
|
|
|
const epg = playlist.header.attrs['x-tvg-url'] ? `<code>${playlist.header.attrs['x-tvg-url']}</code>` : ''
|
|
|
|
const epg = playlist.header.attrs['x-tvg-url'] ? `<code>${playlist.header.attrs['x-tvg-url']}</code>` : ''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// country
|
|
|
|
output.countries.push({
|
|
|
|
output.countries.push({
|
|
|
|
country: rootItem.name,
|
|
|
|
country: rootItem.name,
|
|
|
|
channels: playlist.items.length,
|
|
|
|
channels: playlist.items.length,
|
|
|
@ -41,6 +42,7 @@ function parseIndex() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
for(let item of playlist.items) {
|
|
|
|
for(let item of playlist.items) {
|
|
|
|
|
|
|
|
|
|
|
|
// language
|
|
|
|
// language
|
|
|
|
const languageName = item.tvg.language || 'Undefined'
|
|
|
|
const languageName = item.tvg.language || 'Undefined'
|
|
|
|
const languageCode = ISO6391.getCode(languageName) || 'undefined'
|
|
|
|
const languageCode = ISO6391.getCode(languageName) || 'undefined'
|
|
|
|