mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 02:16:40 -05:00
Rename config.ignore to config.skip
This commit is contained in:
@@ -42,7 +42,7 @@ async function createQueue() {
|
||||
if (!site) continue
|
||||
const configPath = `${dir}/${site}.config.js`
|
||||
const config = require(file.resolve(configPath))
|
||||
if (config.ignore) continue
|
||||
if (config.skip) continue
|
||||
const filename = file.basename(filepath)
|
||||
const [__, region] = filename.match(/_([a-z-]+)\.channels\.xml/i) || [null, null]
|
||||
const groupId = `${region}/${site}`
|
||||
|
||||
@@ -15,9 +15,9 @@ async function main() {
|
||||
const files = await file.list(CONFIGS_PATH).catch(console.error)
|
||||
for (const filepath of files) {
|
||||
try {
|
||||
const { site, ignore } = require(file.resolve(filepath))
|
||||
const { site, skip } = require(file.resolve(filepath))
|
||||
|
||||
if (ignore) continue
|
||||
if (skip) continue
|
||||
|
||||
data.push([
|
||||
site,
|
||||
|
||||
Reference in New Issue
Block a user