Update guide.dstv.com.config.js

This commit is contained in:
Aleksandr Statciuk 2022-05-09 13:59:56 +03:00
parent 9fde15a532
commit 256431384f

View file

@ -9,7 +9,12 @@ dayjs.extend(customParseFormat)
module.exports = {
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 }) {
const [bouquetId] = channel.site_id.split('#')
@ -17,7 +22,7 @@ module.exports = {
'YYYY-MM-DD'
)}`
},
parser({ content, date, channel }) {
parser({ content, date, channel, cached }) {
const programs = []
const items = parseItems(content, date, channel)
items.forEach(item => {