mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update create-matrix.js
This commit is contained in:
parent
ebcffea556
commit
a2919a070c
1 changed files with 4 additions and 0 deletions
|
@ -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 })
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue