mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update ipko.com.config.js
This commit is contained in:
parent
6178cf1bf5
commit
1a5ff9b801
1 changed files with 2 additions and 8 deletions
|
@ -9,14 +9,8 @@ module.exports = {
|
|||
url: function ({ date }) {
|
||||
return `https://www.ipko.com/epg/admin/programs.php?date=${date.format('YYYY-MM-DD')}`
|
||||
},
|
||||
async logo({ channel }) {
|
||||
const data = await axios
|
||||
.post('https://www.ipko.com/epg/admin/channels.php')
|
||||
.then(r => r.data)
|
||||
.catch(console.log)
|
||||
const item = Object.values(data.element).find(c => c.channel_id == channel.site_id)
|
||||
|
||||
return item ? `https://www.ipko.com/epg/logo/${item.icon}` : null
|
||||
logo({ channel }) {
|
||||
return channel.logo
|
||||
},
|
||||
parser: function ({ content, channel, date }) {
|
||||
let programs = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue