mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Update create-matrix.js
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const { Command } = require('commander')
|
||||
const file = require('./file')
|
||||
const path = require('path')
|
||||
|
||||
const program = new Command()
|
||||
program
|
||||
@@ -16,6 +17,9 @@ file.list('sites/*/*.channels.xml', options.include, options.exclude).then(files
|
||||
|
||||
files.forEach(filename => {
|
||||
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 })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user