mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 10:56:57 -05:00
Update create-matrix.js
This commit is contained in:
@@ -8,16 +8,17 @@ file
|
|||||||
])
|
])
|
||||||
.then(files => {
|
.then(files => {
|
||||||
const matrix = {
|
const matrix = {
|
||||||
site: [],
|
guide: []
|
||||||
country: []
|
|
||||||
}
|
}
|
||||||
|
|
||||||
files.forEach(filename => {
|
files.forEach(filename => {
|
||||||
const channelsFile = file.read(filename)
|
const channelsFile = file.read(filename)
|
||||||
const parsed = parser.parseChannels(channelsFile)
|
const parsed = parser.parseChannels(channelsFile)
|
||||||
parsed.groups.forEach(group => {
|
parsed.groups.forEach(group => {
|
||||||
matrix.site.push(parsed.site)
|
matrix.guide.push({
|
||||||
matrix.country.push(group.country.toLowerCase())
|
site: parsed.site,
|
||||||
|
country: group.country.toLowerCase()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user