mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update create-matrix.js
This commit is contained in:
parent
fa4fd2fa89
commit
a3ff63c090
1 changed files with 5 additions and 4 deletions
|
@ -8,16 +8,17 @@ file
|
|||
])
|
||||
.then(files => {
|
||||
const matrix = {
|
||||
site: [],
|
||||
country: []
|
||||
guide: []
|
||||
}
|
||||
|
||||
files.forEach(filename => {
|
||||
const channelsFile = file.read(filename)
|
||||
const parsed = parser.parseChannels(channelsFile)
|
||||
parsed.groups.forEach(group => {
|
||||
matrix.site.push(parsed.site)
|
||||
matrix.country.push(group.country.toLowerCase())
|
||||
matrix.guide.push({
|
||||
site: parsed.site,
|
||||
country: group.country.toLowerCase()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue