From 563d1c1b76d62118e82df59069802432f8371b4a Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Fri, 15 Oct 2021 04:34:41 +0300 Subject: [PATCH] Update create-matrix.js --- scripts/create-matrix.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/create-matrix.js b/scripts/create-matrix.js index 3cad96ac..c723904f 100644 --- a/scripts/create-matrix.js +++ b/scripts/create-matrix.js @@ -10,13 +10,13 @@ program const options = program.opts() -file.list('sites/*.channels.xml', options.include, options.exclude).then(files => { +file.list('sites/**/*.channels.xml', options.include, options.exclude).then(files => { const matrix = { guide: [] } files.forEach(filename => { - const country = filename.match(/sites\/.*_(.*)\.channels\.xml/i)[1] + const country = filename.match(/sites\/.*\/.*_(.*)\.channels\.xml/i)[1] const channelsFile = file.read(filename) const parsed = grabber.parseChannels(channelsFile)