mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-11 17:40:07 -04:00
Update guide.dstv.com.config.js
This commit is contained in:
parent
9fde15a532
commit
256431384f
1 changed files with 7 additions and 2 deletions
|
@ -9,7 +9,12 @@ dayjs.extend(customParseFormat)
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'guide.dstv.com',
|
site: 'guide.dstv.com',
|
||||||
ignore: true, // the guide is currently not available on the site
|
request: {
|
||||||
|
cache: {
|
||||||
|
ttl: 60 * 60 * 1000,
|
||||||
|
interpretHeader: false
|
||||||
|
}
|
||||||
|
},
|
||||||
url({ channel, date }) {
|
url({ channel, date }) {
|
||||||
const [bouquetId] = channel.site_id.split('#')
|
const [bouquetId] = channel.site_id.split('#')
|
||||||
|
|
||||||
|
@ -17,7 +22,7 @@ module.exports = {
|
||||||
'YYYY-MM-DD'
|
'YYYY-MM-DD'
|
||||||
)}`
|
)}`
|
||||||
},
|
},
|
||||||
parser({ content, date, channel }) {
|
parser({ content, date, channel, cached }) {
|
||||||
const programs = []
|
const programs = []
|
||||||
const items = parseItems(content, date, channel)
|
const items = parseItems(content, date, channel)
|
||||||
items.forEach(item => {
|
items.forEach(item => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue