mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update dstv.com.config.js
This commit is contained in:
parent
7796f0db74
commit
b2c1debc03
1 changed files with 9 additions and 4 deletions
|
@ -6,6 +6,11 @@ dayjs.extend(utc)
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'dstv.com',
|
site: 'dstv.com',
|
||||||
|
request: {
|
||||||
|
cache: {
|
||||||
|
maxAge: 6 * 60 * 60 * 1000 // 6h
|
||||||
|
}
|
||||||
|
},
|
||||||
url: function ({ channel, date }) {
|
url: function ({ channel, date }) {
|
||||||
const [region] = channel.site_id.split('#')
|
const [region] = channel.site_id.split('#')
|
||||||
const packageName = region === 'nga' ? 'DStv%20Premium' : ''
|
const packageName = region === 'nga' ? 'DStv%20Premium' : ''
|
||||||
|
@ -19,12 +24,12 @@ module.exports = {
|
||||||
const items = parseItems(content, channel)
|
const items = parseItems(content, channel)
|
||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
// NOTE: the job has exceeded the maximum execution time of 360 minutes (https://github.com/iptv-org/epg/runs/5608211322?check_suite_focus=true)
|
// NOTE: the job has exceeded the maximum execution time of 360 minutes (https://github.com/iptv-org/epg/runs/5608211322?check_suite_focus=true)
|
||||||
// const details = await loadProgramDetails(item)
|
const details = await loadProgramDetails(item)
|
||||||
programs.push({
|
programs.push({
|
||||||
title: item.Title,
|
title: item.Title,
|
||||||
// description: parseDescription(details),
|
description: parseDescription(details),
|
||||||
// icon: parseIcon(details),
|
icon: parseIcon(details),
|
||||||
// category: parseCategory(details),
|
category: parseCategory(details),
|
||||||
start: parseStart(item),
|
start: parseStart(item),
|
||||||
stop: parseStop(item)
|
stop: parseStop(item)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue