mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update programacion-tv.elpais.com.config.js
Fixes empty guide issue
This commit is contained in:
parent
7718a8877b
commit
827dcd83bf
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue