From 1a5ff9b801bfb9a7e0f49f4386722bf87b54f43c Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 9 Nov 2021 14:37:42 +0300 Subject: [PATCH] Update ipko.com.config.js --- sites/ipko.com/ipko.com.config.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sites/ipko.com/ipko.com.config.js b/sites/ipko.com/ipko.com.config.js index a2f7e2bb..e640983f 100644 --- a/sites/ipko.com/ipko.com.config.js +++ b/sites/ipko.com/ipko.com.config.js @@ -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 = []