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) {