From 827dcd83bf45a264c6fcb85c329932aecb34bfc2 Mon Sep 17 00:00:00 2001 From: freearhey Date: Sat, 3 Apr 2021 00:52:44 +0300 Subject: [PATCH] Update programacion-tv.elpais.com.config.js Fixes empty guide issue --- sites/programacion-tv.elpais.com.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sites/programacion-tv.elpais.com.config.js b/sites/programacion-tv.elpais.com.config.js index 68877673..ed5ff0bf 100644 --- a/sites/programacion-tv.elpais.com.config.js +++ b/sites/programacion-tv.elpais.com.config.js @@ -16,7 +16,8 @@ module.exports = { }, parser: function ({ content, date, channel }) { const programs = [] - const channelData = content.find(i => i.idCanal === channel.site_id) + const data = JSON.parse(content) + const channelData = data.find(i => i.idCanal === channel.site_id) if (!channelData) return programs channelData.programas.forEach(item => { if (item.title && item.iniDate && item.endDate) {