mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update digiturk.com.tr.config.js
Fixes empty guide issue
This commit is contained in:
parent
d026d2a002
commit
7718a8877b
1 changed files with 4 additions and 3 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue