From 2afe3ff92d5c63f610bd2776f868d4a782d3530c Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 12 Nov 2022 00:50:38 +0300 Subject: [PATCH] Rename config.ignore to config.skip --- scripts/commands/queue/create.js | 2 +- scripts/commands/status/update.js | 4 ++-- sites/foxtel.com.au/foxtel.com.au.config.js | 2 +- sites/kan.org.il/kan.org.il.config.js | 2 +- sites/kplus.vn/kplus.vn.config.js | 2 +- sites/magentatv.de/magentatv.de.config.js | 2 +- sites/mbc.net/mbc.net.config.js | 2 +- sites/proximusmwc.be/proximusmwc.be.config.js | 2 +- sites/rotana.net/rotana.net.config.js | 2 +- sites/rtb.gov.bn/rtb.gov.bn.config.js | 2 +- sites/sky.de/sky.de.config.js | 2 +- sites/startv.com/startv.com.config.js | 2 +- sites/turksatkablo.com.tr/turksatkablo.com.tr.config.js | 2 +- sites/tvarenasport.hr/tvarenasport.hr.config.js | 2 +- sites/tvgid.ua/tvgid.ua.config.js | 2 +- sites/tvprofil.com/tvprofil.com.config.js | 2 +- sites/tvtv.us/tvtv.us.config.js | 2 +- sites/vivacom.bg/vivacom.bg.config.js | 2 +- sites/walesi.com.fj/walesi.com.fj.config.js | 2 +- 19 files changed, 20 insertions(+), 20 deletions(-) diff --git a/scripts/commands/queue/create.js b/scripts/commands/queue/create.js index 91019872..a31dcdac 100644 --- a/scripts/commands/queue/create.js +++ b/scripts/commands/queue/create.js @@ -42,7 +42,7 @@ async function createQueue() { if (!site) continue const configPath = `${dir}/${site}.config.js` const config = require(file.resolve(configPath)) - if (config.ignore) continue + if (config.skip) continue const filename = file.basename(filepath) const [__, region] = filename.match(/_([a-z-]+)\.channels\.xml/i) || [null, null] const groupId = `${region}/${site}` diff --git a/scripts/commands/status/update.js b/scripts/commands/status/update.js index 9e3abdba..b7db23d5 100644 --- a/scripts/commands/status/update.js +++ b/scripts/commands/status/update.js @@ -15,9 +15,9 @@ async function main() { const files = await file.list(CONFIGS_PATH).catch(console.error) for (const filepath of files) { try { - const { site, ignore } = require(file.resolve(filepath)) + const { site, skip } = require(file.resolve(filepath)) - if (ignore) continue + if (skip) continue data.push([ site, diff --git a/sites/foxtel.com.au/foxtel.com.au.config.js b/sites/foxtel.com.au/foxtel.com.au.config.js index 1f5ee20a..687c9b46 100644 --- a/sites/foxtel.com.au/foxtel.com.au.config.js +++ b/sites/foxtel.com.au/foxtel.com.au.config.js @@ -3,7 +3,7 @@ const dayjs = require('dayjs') const cheerio = require('cheerio') module.exports = { - ignore: true, // returns "Access Denied" or nothing + skip: true, // returns "Access Denied" or nothing site: 'foxtel.com.au', url({ channel, date }) { return `https://www.foxtel.com.au/tv-guide/channel/${channel.site_id}/${date.format( diff --git a/sites/kan.org.il/kan.org.il.config.js b/sites/kan.org.il/kan.org.il.config.js index e6387ae6..65e8985c 100644 --- a/sites/kan.org.il/kan.org.il.config.js +++ b/sites/kan.org.il/kan.org.il.config.js @@ -8,7 +8,7 @@ dayjs.extend(timezone) dayjs.extend(customParseFormat) module.exports = { - ignore: true, // INFO: Request failed with status code 403 (Access denied) + skip: true, // INFO: Request failed with status code 403 (Access denied) site: 'kan.org.il', url: function ({ channel, date }) { return `https://www.kan.org.il/tv-guide/tv_guidePrograms.ashx?stationID=${ diff --git a/sites/kplus.vn/kplus.vn.config.js b/sites/kplus.vn/kplus.vn.config.js index 7e82f258..31723697 100644 --- a/sites/kplus.vn/kplus.vn.config.js +++ b/sites/kplus.vn/kplus.vn.config.js @@ -10,7 +10,7 @@ const API_ENDPOINT = `https://www.kplus.vn/Schedule/getSchedule` module.exports = { site: 'kplus.vn', - ignore: true, // channel list changes with each request + skip: true, // channel list changes with each request url: API_ENDPOINT, request: { headers: { diff --git a/sites/magentatv.de/magentatv.de.config.js b/sites/magentatv.de/magentatv.de.config.js index 0c180b0e..355b3994 100644 --- a/sites/magentatv.de/magentatv.de.config.js +++ b/sites/magentatv.de/magentatv.de.config.js @@ -7,7 +7,7 @@ const COOKIE = module.exports = { site: 'magentatv.de', - ignore: true, // the site uses a constantly updated session ID + skip: true, // the site uses a constantly updated session ID url: `https://api.prod.sngtv.magentatv.de/EPG/JSON/PlayBillList`, request: { method: 'POST', diff --git a/sites/mbc.net/mbc.net.config.js b/sites/mbc.net/mbc.net.config.js index bf7f36d5..06fe5b60 100644 --- a/sites/mbc.net/mbc.net.config.js +++ b/sites/mbc.net/mbc.net.config.js @@ -2,7 +2,7 @@ const dayjs = require('dayjs') module.exports = { site: 'mbc.net', - ignore: true, // NOTE: there is no program on the site + skip: true, // NOTE: there is no program on the site url({ date, channel }) { return `https://www.mbc.net/.rest/api/channel/grids?from=${date.valueOf()}&to=${date .add(1, 'd') diff --git a/sites/proximusmwc.be/proximusmwc.be.config.js b/sites/proximusmwc.be/proximusmwc.be.config.js index 27def40c..f94f8ac5 100644 --- a/sites/proximusmwc.be/proximusmwc.be.config.js +++ b/sites/proximusmwc.be/proximusmwc.be.config.js @@ -3,7 +3,7 @@ const dayjs = require('dayjs') module.exports = { site: 'proximusmwc.be', - ignore: true, // site is not working (https://github.com/iptv-org/epg/runs/5505070902?check_suite_focus=true) + skip: true, // site is not working (https://github.com/iptv-org/epg/runs/5505070902?check_suite_focus=true) url: 'https://api.proximusmwc.be/v2/graphql', request: { headers: { diff --git a/sites/rotana.net/rotana.net.config.js b/sites/rotana.net/rotana.net.config.js index 65a18c35..5208f61a 100644 --- a/sites/rotana.net/rotana.net.config.js +++ b/sites/rotana.net/rotana.net.config.js @@ -9,7 +9,7 @@ dayjs.extend(customParseFormat) module.exports = { site: 'rotana.net', - ignore: true, // NOTE: there is no program for the current date on the site + skip: true, // NOTE: there is no program for the current date on the site url({ channel, date }) { return `https://rotana.net/triAssets/uploads/2020/11/${channel.site_id}.csv` }, diff --git a/sites/rtb.gov.bn/rtb.gov.bn.config.js b/sites/rtb.gov.bn/rtb.gov.bn.config.js index 68036d06..f25cbcd2 100644 --- a/sites/rtb.gov.bn/rtb.gov.bn.config.js +++ b/sites/rtb.gov.bn/rtb.gov.bn.config.js @@ -9,7 +9,7 @@ dayjs.extend(timezone) dayjs.extend(customParseFormat) module.exports = { - ignore: true, // INFO: guide is not available on the site + skip: true, // INFO: guide is not available on the site site: 'rtb.gov.bn', url: function ({ channel, date }) { const [position] = channel.site_id.split('#') diff --git a/sites/sky.de/sky.de.config.js b/sites/sky.de/sky.de.config.js index d3f544e0..17c70082 100644 --- a/sites/sky.de/sky.de.config.js +++ b/sites/sky.de/sky.de.config.js @@ -2,7 +2,7 @@ const dayjs = require('dayjs') module.exports = { site: 'sky.de', - ignore: true, // server returns error 403 (https://github.com/iptv-org/epg/runs/5435899744?check_suite_focus=true) + skip: true, // server returns error 403 (https://github.com/iptv-org/epg/runs/5435899744?check_suite_focus=true) url: `https://www.sky.de/sgtvg/service/getBroadcastsForGrid`, request: { method: 'POST', diff --git a/sites/startv.com/startv.com.config.js b/sites/startv.com/startv.com.config.js index cb853022..32119e37 100644 --- a/sites/startv.com/startv.com.config.js +++ b/sites/startv.com/startv.com.config.js @@ -12,7 +12,7 @@ const API_ENDPOINT = 'https://www.startv.com/umbraco/api/startvguideproxy' module.exports = { site: 'startv.com', - ignore: true, // REASON: Request failed with status code 405 + skip: true, // REASON: Request failed with status code 405 url: `${API_ENDPOINT}/GetTvGuideSchedule`, request: { method: 'POST', diff --git a/sites/turksatkablo.com.tr/turksatkablo.com.tr.config.js b/sites/turksatkablo.com.tr/turksatkablo.com.tr.config.js index dde1839b..a46edda1 100644 --- a/sites/turksatkablo.com.tr/turksatkablo.com.tr.config.js +++ b/sites/turksatkablo.com.tr/turksatkablo.com.tr.config.js @@ -8,7 +8,7 @@ dayjs.extend(timezone) dayjs.extend(customParseFormat) module.exports = { - ignore: true, // Error: Connection timeout + skip: true, // Error: Connection timeout site: 'turksatkablo.com.tr', url: function ({ date }) { return `https://www.turksatkablo.com.tr/userUpload/EPG/y.json?_=${date.valueOf()}` diff --git a/sites/tvarenasport.hr/tvarenasport.hr.config.js b/sites/tvarenasport.hr/tvarenasport.hr.config.js index b2518d4f..cfcdf83e 100644 --- a/sites/tvarenasport.hr/tvarenasport.hr.config.js +++ b/sites/tvarenasport.hr/tvarenasport.hr.config.js @@ -3,7 +3,7 @@ const dayjs = require('dayjs') module.exports = { site: 'tvarenasport.hr', - ignore: true, // there is no current program on the website + skip: true, // there is no current program on the website url: function ({ channel, date }) { return `https://www.tvarenasport.hr/api/schedule?date=${date.format('DD-MM-YYYY')}` }, diff --git a/sites/tvgid.ua/tvgid.ua.config.js b/sites/tvgid.ua/tvgid.ua.config.js index e2b4a136..70448136 100644 --- a/sites/tvgid.ua/tvgid.ua.config.js +++ b/sites/tvgid.ua/tvgid.ua.config.js @@ -11,7 +11,7 @@ dayjs.extend(customParseFormat) module.exports = { site: 'tvgid.ua', - ignore: true, // NOTE: the current program is not currently available on the website + skip: true, // NOTE: the current program is not currently available on the website url: function ({ date, channel }) { return `https://tvgid.ua/channels/${channel.site_id}/${date.format('DDMMYYYY')}/tmall/` }, diff --git a/sites/tvprofil.com/tvprofil.com.config.js b/sites/tvprofil.com/tvprofil.com.config.js index b6b5501c..0a65055d 100644 --- a/sites/tvprofil.com/tvprofil.com.config.js +++ b/sites/tvprofil.com/tvprofil.com.config.js @@ -3,7 +3,7 @@ const dayjs = require('dayjs') module.exports = { site: 'tvprofil.com', - ignore: true, // NOTE: server is not stable + skip: true, // NOTE: server is not stable url: function ({ channel, date }) { const parts = channel.site_id.split('#') const query = buildQuery(parts[1], date) diff --git a/sites/tvtv.us/tvtv.us.config.js b/sites/tvtv.us/tvtv.us.config.js index 92f2d6a6..9eeb500d 100644 --- a/sites/tvtv.us/tvtv.us.config.js +++ b/sites/tvtv.us/tvtv.us.config.js @@ -4,7 +4,7 @@ const utc = require('dayjs/plugin/utc') dayjs.extend(utc) module.exports = { - ignore: true, // NOTE: return an HTTP error 503 (Service Unavailable) on every request from GitHub server only (https://github.com/iptv-org/epg/issues/1172#issuecomment-1284261669) + skip: true, // NOTE: return an HTTP error 503 (Service Unavailable) on every request from GitHub server only (https://github.com/iptv-org/epg/issues/1172#issuecomment-1284261669) site: 'tvtv.us', url: function ({ date, channel }) { return `https://www.tvtv.us/api/v1/lineup/USA-NY71652-DEFAULT/grid/${date.toJSON()}/${date diff --git a/sites/vivacom.bg/vivacom.bg.config.js b/sites/vivacom.bg/vivacom.bg.config.js index 97725c73..c729d6aa 100644 --- a/sites/vivacom.bg/vivacom.bg.config.js +++ b/sites/vivacom.bg/vivacom.bg.config.js @@ -10,7 +10,7 @@ dayjs.extend(customParseFormat) module.exports = { site: 'vivacom.bg', - ignore: true, // INFO: no longer available + skip: true, // INFO: no longer available url({ date, channel }) { const [page] = channel.site_id.split('#') diff --git a/sites/walesi.com.fj/walesi.com.fj.config.js b/sites/walesi.com.fj/walesi.com.fj.config.js index dcb00c99..9e419eee 100644 --- a/sites/walesi.com.fj/walesi.com.fj.config.js +++ b/sites/walesi.com.fj/walesi.com.fj.config.js @@ -11,7 +11,7 @@ dayjs.extend(customParseFormat) module.exports = { site: 'walesi.com.fj', - ignore: true, // the program is no longer available on the website + skip: true, // the program is no longer available on the website url: 'https://www.walesi.com.fj/wp-admin/admin-ajax.php', request: { method: 'POST',