mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 19:06:58 -05:00
Update create-matrix.js
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
const { Command } = require('commander')
|
const { Command } = require('commander')
|
||||||
const file = require('./file')
|
const file = require('./file')
|
||||||
|
const path = require('path')
|
||||||
|
|
||||||
const program = new Command()
|
const program = new Command()
|
||||||
program
|
program
|
||||||
@@ -16,6 +17,9 @@ file.list('sites/*/*.channels.xml', options.include, options.exclude).then(files
|
|||||||
|
|
||||||
files.forEach(filename => {
|
files.forEach(filename => {
|
||||||
const [_, site, country] = filename.match(/sites\/.*\/(.*)_(.*)\.channels\.xml/i)
|
const [_, site, country] = filename.match(/sites\/.*\/(.*)_(.*)\.channels\.xml/i)
|
||||||
|
const config = require(path.resolve(`./sites/${site}/${site}.config.js`))
|
||||||
|
|
||||||
|
if (config.ignore) return
|
||||||
|
|
||||||
matrix.guide.push({ site, country })
|
matrix.guide.push({ site, country })
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user