mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 17:10:07 -04:00
Update astro.com.my.config.js
This commit is contained in:
parent
689669469c
commit
277a1704ec
1 changed files with 6 additions and 1 deletions
|
@ -4,10 +4,15 @@ const utc = require('dayjs/plugin/utc')
|
|||
dayjs.extend(utc)
|
||||
module.exports = {
|
||||
site: 'astro.com.my',
|
||||
request: {
|
||||
cache: {
|
||||
ttl: 6 * 60 * 60 * 1000 // 6h
|
||||
}
|
||||
},
|
||||
url: function ({ channel }) {
|
||||
return `https://contenthub-api.eco.astro.com.my/channel/${channel.site_id}.json`
|
||||
},
|
||||
parser: function ({ content, date }) {
|
||||
parser: function ({ content, date, cached }) {
|
||||
const programs = []
|
||||
const items = parseItems(content, date)
|
||||
items.forEach(item => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue