mirror of
https://github.com/iptv-org/epg
synced 2025-12-20 20:37:00 -05:00
Update create-matrix.js
This commit is contained in:
@@ -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)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user