mirror of
https://github.com/iptv-org/epg
synced 2026-05-08 10:27:06 -04:00
Update astro.com.my
This commit is contained in:
@@ -37,6 +37,20 @@ module.exports = {
|
||||
}
|
||||
|
||||
return programs
|
||||
},
|
||||
async channels() {
|
||||
const data = await axios
|
||||
.get(`https://contenthub-api.eco.astro.com.my/channel/all.json`)
|
||||
.then(r => r.data)
|
||||
.catch(console.log)
|
||||
|
||||
return data.response.map(item => {
|
||||
return {
|
||||
lang: 'ms',
|
||||
site_id: item.id,
|
||||
name: item.title
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user