Update update-readme.js

This commit is contained in:
Aleksandr Statciuk 2022-02-03 07:42:11 +03:00
parent dda0e31161
commit 82a9165bf5

View file

@ -15,6 +15,9 @@ async function main() {
const items = []
for (const filepath of files) {
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 [__, suffix] = filename.match(/\_(.*)\.channels\.xml$/) || [null, null]
const [code] = suffix.split('-')