mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-11 09:30:06 -04:00
Update i.mjh.nz.config.js
This commit is contained in:
parent
caeceea0ab
commit
0997a1548f
1 changed files with 2 additions and 3 deletions
|
@ -35,15 +35,14 @@ module.exports = {
|
|||
|
||||
return programs
|
||||
},
|
||||
async channels({ service, region, lang = 'en' }) {
|
||||
async channels({ service, region = 'all', lang = 'en' }) {
|
||||
const data = await axios
|
||||
.get(`https://i.mjh.nz/${service}/app.json`)
|
||||
.then(r => r.data)
|
||||
.catch(console.log)
|
||||
|
||||
const channels = []
|
||||
const items = !region ? data.channels : data.regions[region].channels
|
||||
region = region || 'all'
|
||||
const items = region === 'all' ? data.channels : data.regions[region].channels
|
||||
const path = `${service}/${region}`
|
||||
for (let id in items) {
|
||||
const channel = items[id]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue