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