mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
Update update-readme.js
This commit is contained in:
@@ -15,6 +15,9 @@ async function main() {
|
|||||||
const items = []
|
const items = []
|
||||||
for (const filepath of files) {
|
for (const filepath of files) {
|
||||||
const { site, channels } = await parser.parseChannels(filepath)
|
const { site, channels } = await parser.parseChannels(filepath)
|
||||||
|
const config = require(`../../sites/${site}/${site}.config.js`)
|
||||||
|
if (config.ignore) continue
|
||||||
|
|
||||||
const filename = file.basename(filepath)
|
const filename = file.basename(filepath)
|
||||||
const [__, suffix] = filename.match(/\_(.*)\.channels\.xml$/) || [null, null]
|
const [__, suffix] = filename.match(/\_(.*)\.channels\.xml$/) || [null, null]
|
||||||
const [code] = suffix.split('-')
|
const [code] = suffix.split('-')
|
||||||
|
|||||||
Reference in New Issue
Block a user