From ebcffea556e00f41f02ab70551fa57075d4829a2 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 31 Oct 2021 23:55:03 +0300 Subject: [PATCH 1/4] Update auto-update.yml --- .github/workflows/auto-update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index de8c197f..0df3b11f 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -31,7 +31,7 @@ jobs: run: npm install - name: Create Matrix id: set-matrix - run: node scripts/create-matrix.js --exclude=sites/tvprofil.com/*,sites/znbc.co.zm/* + run: node scripts/create-matrix.js grab: runs-on: ubuntu-latest needs: create-matrix From a2919a070c923643c24614363dd99436ec65826a Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 31 Oct 2021 23:55:07 +0300 Subject: [PATCH 2/4] Update create-matrix.js --- scripts/create-matrix.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/create-matrix.js b/scripts/create-matrix.js index 897919de..44f01f53 100644 --- a/scripts/create-matrix.js +++ b/scripts/create-matrix.js @@ -1,5 +1,6 @@ const { Command } = require('commander') const file = require('./file') +const path = require('path') const program = new Command() program @@ -16,6 +17,9 @@ file.list('sites/*/*.channels.xml', options.include, options.exclude).then(files files.forEach(filename => { const [_, site, country] = filename.match(/sites\/.*\/(.*)_(.*)\.channels\.xml/i) + const config = require(path.resolve(`./sites/${site}/${site}.config.js`)) + + if (config.ignore) return matrix.guide.push({ site, country }) }) From d5af4ff245dc283cabdb0102196f501657cc80e6 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 31 Oct 2021 23:55:14 +0300 Subject: [PATCH 3/4] Update tvprofil.com.config.js --- sites/tvprofil.com/tvprofil.com.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sites/tvprofil.com/tvprofil.com.config.js b/sites/tvprofil.com/tvprofil.com.config.js index 93e921b3..4b443384 100644 --- a/sites/tvprofil.com/tvprofil.com.config.js +++ b/sites/tvprofil.com/tvprofil.com.config.js @@ -1,10 +1,9 @@ -// BUG: server is not stable - const cheerio = require('cheerio') const dayjs = require('dayjs') module.exports = { site: 'tvprofil.com', + ignore: true, // NOTE: server is not stable request: { headers: { 'x-requested-with': 'XMLHttpRequest' From 8652b0164026ea90c164e30b1c498cc7f840b966 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 31 Oct 2021 23:55:17 +0300 Subject: [PATCH 4/4] Update znbc.co.zm.config.js --- sites/znbc.co.zm/znbc.co.zm.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sites/znbc.co.zm/znbc.co.zm.config.js b/sites/znbc.co.zm/znbc.co.zm.config.js index f4eb2520..cd3d4944 100644 --- a/sites/znbc.co.zm/znbc.co.zm.config.js +++ b/sites/znbc.co.zm/znbc.co.zm.config.js @@ -1,5 +1,3 @@ -// BUG: site is down - const jsdom = require('jsdom') const { JSDOM } = jsdom const dayjs = require('dayjs') @@ -14,6 +12,7 @@ dayjs.extend(customParseFormat) module.exports = { site: 'znbc.co.zm', + ignore: true, // NOTE: site is down url({ channel }) { return `https://www.znbc.co.zm/${channel.site_id}/` },