mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update guidatv.sky.it.config.js
Fixes empty guide issue
This commit is contained in:
parent
827dcd83bf
commit
0c3ed2e5b0
1 changed files with 4 additions and 2 deletions
|
@ -18,9 +18,11 @@ module.exports = {
|
|||
},
|
||||
parser: function ({ content, date }) {
|
||||
const programs = []
|
||||
if (!content.events) return programs
|
||||
const data = JSON.parse(content)
|
||||
const items = data.events
|
||||
if (!items.length) return programs
|
||||
|
||||
content.events.forEach(item => {
|
||||
items.forEach(item => {
|
||||
if (item.eventTitle && item.starttime && item.endtime) {
|
||||
programs.push({
|
||||
title: item.eventTitle,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue