mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update create-matrix.js
This commit is contained in:
parent
4b7529e298
commit
563d1c1b76
1 changed files with 2 additions and 2 deletions
|
@ -10,13 +10,13 @@ program
|
||||||
|
|
||||||
const options = program.opts()
|
const options = program.opts()
|
||||||
|
|
||||||
file.list('sites/*.channels.xml', options.include, options.exclude).then(files => {
|
file.list('sites/**/*.channels.xml', options.include, options.exclude).then(files => {
|
||||||
const matrix = {
|
const matrix = {
|
||||||
guide: []
|
guide: []
|
||||||
}
|
}
|
||||||
|
|
||||||
files.forEach(filename => {
|
files.forEach(filename => {
|
||||||
const country = filename.match(/sites\/.*_(.*)\.channels\.xml/i)[1]
|
const country = filename.match(/sites\/.*\/.*_(.*)\.channels\.xml/i)[1]
|
||||||
|
|
||||||
const channelsFile = file.read(filename)
|
const channelsFile = file.read(filename)
|
||||||
const parsed = grabber.parseChannels(channelsFile)
|
const parsed = grabber.parseChannels(channelsFile)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue