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
a5c5ef86f4
commit
3379ae463a
1 changed files with 2 additions and 7 deletions
|
@ -1,14 +1,10 @@
|
||||||
const file = require('./file')
|
const file = require('./file')
|
||||||
const parser = require('./parser')
|
const parser = require('./parser')
|
||||||
|
|
||||||
const days = 2
|
file.list('sites/*.channels.xml', ['sites/andorradifusio.ad.channels.xml']).then(files => {
|
||||||
const includes = []
|
|
||||||
|
|
||||||
file.list('sites/*.channels.xml', includes).then(files => {
|
|
||||||
const matrix = {
|
const matrix = {
|
||||||
site: [],
|
site: [],
|
||||||
country: [],
|
country: []
|
||||||
days: []
|
|
||||||
}
|
}
|
||||||
|
|
||||||
files.forEach(filename => {
|
files.forEach(filename => {
|
||||||
|
@ -17,7 +13,6 @@ file.list('sites/*.channels.xml', includes).then(files => {
|
||||||
parsed.groups.forEach(group => {
|
parsed.groups.forEach(group => {
|
||||||
matrix.site.push(parsed.site)
|
matrix.site.push(parsed.site)
|
||||||
matrix.country.push(group.country.toLowerCase())
|
matrix.country.push(group.country.toLowerCase())
|
||||||
matrix.days.push(days)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue