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