mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Rename config.ignore to config.skip
This commit is contained in:
parent
cc3e319da3
commit
2afe3ff92d
19 changed files with 20 additions and 20 deletions
|
@ -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}`
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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=${
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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`
|
||||
},
|
||||
|
|
|
@ -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('#')
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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()}`
|
||||
|
|
|
@ -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')}`
|
||||
},
|
||||
|
|
|
@ -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/`
|
||||
},
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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('#')
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue