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
|
if (!site) continue
|
||||||
const configPath = `${dir}/${site}.config.js`
|
const configPath = `${dir}/${site}.config.js`
|
||||||
const config = require(file.resolve(configPath))
|
const config = require(file.resolve(configPath))
|
||||||
if (config.ignore) continue
|
if (config.skip) continue
|
||||||
const filename = file.basename(filepath)
|
const filename = file.basename(filepath)
|
||||||
const [__, region] = filename.match(/_([a-z-]+)\.channels\.xml/i) || [null, null]
|
const [__, region] = filename.match(/_([a-z-]+)\.channels\.xml/i) || [null, null]
|
||||||
const groupId = `${region}/${site}`
|
const groupId = `${region}/${site}`
|
||||||
|
|
|
@ -15,9 +15,9 @@ async function main() {
|
||||||
const files = await file.list(CONFIGS_PATH).catch(console.error)
|
const files = await file.list(CONFIGS_PATH).catch(console.error)
|
||||||
for (const filepath of files) {
|
for (const filepath of files) {
|
||||||
try {
|
try {
|
||||||
const { site, ignore } = require(file.resolve(filepath))
|
const { site, skip } = require(file.resolve(filepath))
|
||||||
|
|
||||||
if (ignore) continue
|
if (skip) continue
|
||||||
|
|
||||||
data.push([
|
data.push([
|
||||||
site,
|
site,
|
||||||
|
|
|
@ -3,7 +3,7 @@ const dayjs = require('dayjs')
|
||||||
const cheerio = require('cheerio')
|
const cheerio = require('cheerio')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
ignore: true, // returns "Access Denied" or nothing
|
skip: true, // returns "Access Denied" or nothing
|
||||||
site: 'foxtel.com.au',
|
site: 'foxtel.com.au',
|
||||||
url({ channel, date }) {
|
url({ channel, date }) {
|
||||||
return `https://www.foxtel.com.au/tv-guide/channel/${channel.site_id}/${date.format(
|
return `https://www.foxtel.com.au/tv-guide/channel/${channel.site_id}/${date.format(
|
||||||
|
|
|
@ -8,7 +8,7 @@ dayjs.extend(timezone)
|
||||||
dayjs.extend(customParseFormat)
|
dayjs.extend(customParseFormat)
|
||||||
|
|
||||||
module.exports = {
|
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',
|
site: 'kan.org.il',
|
||||||
url: function ({ channel, date }) {
|
url: function ({ channel, date }) {
|
||||||
return `https://www.kan.org.il/tv-guide/tv_guidePrograms.ashx?stationID=${
|
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 = {
|
module.exports = {
|
||||||
site: 'kplus.vn',
|
site: 'kplus.vn',
|
||||||
ignore: true, // channel list changes with each request
|
skip: true, // channel list changes with each request
|
||||||
url: API_ENDPOINT,
|
url: API_ENDPOINT,
|
||||||
request: {
|
request: {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -7,7 +7,7 @@ const COOKIE =
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'magentatv.de',
|
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`,
|
url: `https://api.prod.sngtv.magentatv.de/EPG/JSON/PlayBillList`,
|
||||||
request: {
|
request: {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
|
@ -2,7 +2,7 @@ const dayjs = require('dayjs')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'mbc.net',
|
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 }) {
|
url({ date, channel }) {
|
||||||
return `https://www.mbc.net/.rest/api/channel/grids?from=${date.valueOf()}&to=${date
|
return `https://www.mbc.net/.rest/api/channel/grids?from=${date.valueOf()}&to=${date
|
||||||
.add(1, 'd')
|
.add(1, 'd')
|
||||||
|
|
|
@ -3,7 +3,7 @@ const dayjs = require('dayjs')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'proximusmwc.be',
|
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',
|
url: 'https://api.proximusmwc.be/v2/graphql',
|
||||||
request: {
|
request: {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -9,7 +9,7 @@ dayjs.extend(customParseFormat)
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'rotana.net',
|
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 }) {
|
url({ channel, date }) {
|
||||||
return `https://rotana.net/triAssets/uploads/2020/11/${channel.site_id}.csv`
|
return `https://rotana.net/triAssets/uploads/2020/11/${channel.site_id}.csv`
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,7 @@ dayjs.extend(timezone)
|
||||||
dayjs.extend(customParseFormat)
|
dayjs.extend(customParseFormat)
|
||||||
|
|
||||||
module.exports = {
|
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',
|
site: 'rtb.gov.bn',
|
||||||
url: function ({ channel, date }) {
|
url: function ({ channel, date }) {
|
||||||
const [position] = channel.site_id.split('#')
|
const [position] = channel.site_id.split('#')
|
||||||
|
|
|
@ -2,7 +2,7 @@ const dayjs = require('dayjs')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'sky.de',
|
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`,
|
url: `https://www.sky.de/sgtvg/service/getBroadcastsForGrid`,
|
||||||
request: {
|
request: {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
|
@ -12,7 +12,7 @@ const API_ENDPOINT = 'https://www.startv.com/umbraco/api/startvguideproxy'
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'startv.com',
|
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`,
|
url: `${API_ENDPOINT}/GetTvGuideSchedule`,
|
||||||
request: {
|
request: {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
|
@ -8,7 +8,7 @@ dayjs.extend(timezone)
|
||||||
dayjs.extend(customParseFormat)
|
dayjs.extend(customParseFormat)
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
ignore: true, // Error: Connection timeout
|
skip: true, // Error: Connection timeout
|
||||||
site: 'turksatkablo.com.tr',
|
site: 'turksatkablo.com.tr',
|
||||||
url: function ({ date }) {
|
url: function ({ date }) {
|
||||||
return `https://www.turksatkablo.com.tr/userUpload/EPG/y.json?_=${date.valueOf()}`
|
return `https://www.turksatkablo.com.tr/userUpload/EPG/y.json?_=${date.valueOf()}`
|
||||||
|
|
|
@ -3,7 +3,7 @@ const dayjs = require('dayjs')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'tvarenasport.hr',
|
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 }) {
|
url: function ({ channel, date }) {
|
||||||
return `https://www.tvarenasport.hr/api/schedule?date=${date.format('DD-MM-YYYY')}`
|
return `https://www.tvarenasport.hr/api/schedule?date=${date.format('DD-MM-YYYY')}`
|
||||||
},
|
},
|
||||||
|
|
|
@ -11,7 +11,7 @@ dayjs.extend(customParseFormat)
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'tvgid.ua',
|
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 }) {
|
url: function ({ date, channel }) {
|
||||||
return `https://tvgid.ua/channels/${channel.site_id}/${date.format('DDMMYYYY')}/tmall/`
|
return `https://tvgid.ua/channels/${channel.site_id}/${date.format('DDMMYYYY')}/tmall/`
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,7 @@ const dayjs = require('dayjs')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'tvprofil.com',
|
site: 'tvprofil.com',
|
||||||
ignore: true, // NOTE: server is not stable
|
skip: true, // NOTE: server is not stable
|
||||||
url: function ({ channel, date }) {
|
url: function ({ channel, date }) {
|
||||||
const parts = channel.site_id.split('#')
|
const parts = channel.site_id.split('#')
|
||||||
const query = buildQuery(parts[1], date)
|
const query = buildQuery(parts[1], date)
|
||||||
|
|
|
@ -4,7 +4,7 @@ const utc = require('dayjs/plugin/utc')
|
||||||
dayjs.extend(utc)
|
dayjs.extend(utc)
|
||||||
|
|
||||||
module.exports = {
|
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',
|
site: 'tvtv.us',
|
||||||
url: function ({ date, channel }) {
|
url: function ({ date, channel }) {
|
||||||
return `https://www.tvtv.us/api/v1/lineup/USA-NY71652-DEFAULT/grid/${date.toJSON()}/${date
|
return `https://www.tvtv.us/api/v1/lineup/USA-NY71652-DEFAULT/grid/${date.toJSON()}/${date
|
||||||
|
|
|
@ -10,7 +10,7 @@ dayjs.extend(customParseFormat)
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'vivacom.bg',
|
site: 'vivacom.bg',
|
||||||
ignore: true, // INFO: no longer available
|
skip: true, // INFO: no longer available
|
||||||
url({ date, channel }) {
|
url({ date, channel }) {
|
||||||
const [page] = channel.site_id.split('#')
|
const [page] = channel.site_id.split('#')
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ dayjs.extend(customParseFormat)
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'walesi.com.fj',
|
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',
|
url: 'https://www.walesi.com.fj/wp-admin/admin-ajax.php',
|
||||||
request: {
|
request: {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue