mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 11:27:06 -05:00
Update digiturk.com.tr.config.js
Fixes empty guide issue
This commit is contained in:
@@ -10,8 +10,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
parser: function ({ content, date, channel }) {
|
parser: function ({ content, date, channel }) {
|
||||||
const programs = []
|
const programs = []
|
||||||
const data = content.listings[channel.site_id]
|
const data = JSON.parse(content)
|
||||||
if (!data) return programs
|
const items = data.listings[channel.site_id]
|
||||||
|
if (!items.length) return programs
|
||||||
|
|
||||||
const categories = {
|
const categories = {
|
||||||
'00': 'Diğer',
|
'00': 'Diğer',
|
||||||
@@ -35,7 +36,7 @@ module.exports = {
|
|||||||
F9: 'Life Style'
|
F9: 'Life Style'
|
||||||
}
|
}
|
||||||
|
|
||||||
data.forEach(item => {
|
items.forEach(item => {
|
||||||
if (item.ProgramName && item.BroadcastStart && item.BroadcastEnd) {
|
if (item.ProgramName && item.BroadcastStart && item.BroadcastEnd) {
|
||||||
programs.push({
|
programs.push({
|
||||||
title: item.ProgramName,
|
title: item.ProgramName,
|
||||||
|
|||||||
Reference in New Issue
Block a user