mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -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 parser = require('./parser')
|
||||
|
||||
const days = 2
|
||||
const includes = []
|
||||
|
||||
file.list('sites/*.channels.xml', includes).then(files => {
|
||||
file.list('sites/*.channels.xml', ['sites/andorradifusio.ad.channels.xml']).then(files => {
|
||||
const matrix = {
|
||||
site: [],
|
||||
country: [],
|
||||
days: []
|
||||
country: []
|
||||
}
|
||||
|
||||
files.forEach(filename => {
|
||||
|
@ -17,7 +13,6 @@ file.list('sites/*.channels.xml', includes).then(files => {
|
|||
parsed.groups.forEach(group => {
|
||||
matrix.site.push(parsed.site)
|
||||
matrix.country.push(group.country.toLowerCase())
|
||||
matrix.days.push(days)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue