Update create-matrix.js

This commit is contained in:
Aleksandr Statciuk 2021-10-07 22:59:38 +03:00
parent 32fda36b00
commit 8f830182f0

View file

@ -1,6 +1,6 @@
const file = require('./file.js')
file.list(['ad'], ['us-local']).then(files => {
file.list('channels/**/*.xml', ['ad'], ['us-local']).then(files => {
const country = files.map(file => file.replace(/channels\/|\.xml/gi, ''))
const days = country.map(() => 2)
const matrix = { country, days }