Rename config.ignore to config.skip

This commit is contained in:
Aleksandr Statciuk 2022-11-12 00:50:38 +03:00
parent cc3e319da3
commit 2afe3ff92d
19 changed files with 20 additions and 20 deletions

View file

@ -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}`

View file

@ -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,

View file

@ -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(

View file

@ -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=${

View file

@ -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: {

View file

@ -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',

View file

@ -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')

View file

@ -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: {

View file

@ -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`
},

View file

@ -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('#')

View file

@ -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',

View file

@ -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',

View file

@ -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()}`

View file

@ -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')}`
},

View file

@ -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/`
},

View file

@ -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)

View file

@ -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

View file

@ -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('#')

View file

@ -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',