Update create-database.js

This commit is contained in:
Aleksandr Statciuk committed 2022-01-21 19:46:50 +03:00
1 parent 15e54da0e2
commit 0d2458685b
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -38,7 +38,8 @@ async function getChannels() {
const configPath = `${dir}/${site}.config.js`
const config = require(file.resolve(configPath))
if (config.ignore) continue
const [__, groupId] = filename.match(/_([a-z-]+)\.channels\.xml/i) || [null, null]
const [__, region] = filename.match(/_([a-z-]+)\.channels\.xml/i) || [null, null]
const groupId = `${region}/${site}`
const items = await parser.parseChannels(filepath)
for (const item of items) {
const key = `${item.site}:${item.site_id}`