mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 11:27:06 -05:00
Update programacion-tv.elpais.com.config.js
Fixes empty guide issue
This commit is contained in:
@@ -16,7 +16,8 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
parser: function ({ content, date, channel }) {
|
parser: function ({ content, date, channel }) {
|
||||||
const programs = []
|
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
|
if (!channelData) return programs
|
||||||
channelData.programas.forEach(item => {
|
channelData.programas.forEach(item => {
|
||||||
if (item.title && item.iniDate && item.endDate) {
|
if (item.title && item.iniDate && item.endDate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user