mirror of
https://github.com/iptv-org/epg
synced 2026-04-28 21:46:58 -04:00
Update ipko.com
This commit is contained in:
@@ -26,6 +26,25 @@ module.exports = {
|
||||
})
|
||||
|
||||
return programs
|
||||
},
|
||||
async channels() {
|
||||
const axios = require('axios')
|
||||
|
||||
const data = await axios
|
||||
.get(`https://www.ipko.com/epg/admin/channels.php`)
|
||||
.then(r => r.data)
|
||||
.catch(console.log)
|
||||
|
||||
let channels = []
|
||||
data.element.forEach(item => {
|
||||
channels.push({
|
||||
lang: 'sq',
|
||||
site_id: item.channel_id,
|
||||
name: item.channel_name
|
||||
})
|
||||
})
|
||||
|
||||
return channels
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user