mirror of
https://github.com/iptv-org/epg
synced 2025-12-20 12:26:58 -05:00
Update guidatv.sky.it.config.js
Fixes empty guide issue
This commit is contained in:
@@ -18,9 +18,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
parser: function ({ content, date }) {
|
parser: function ({ content, date }) {
|
||||||
const programs = []
|
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) {
|
if (item.eventTitle && item.starttime && item.endtime) {
|
||||||
programs.push({
|
programs.push({
|
||||||
title: item.eventTitle,
|
title: item.eventTitle,
|
||||||
|
|||||||
Reference in New Issue
Block a user