mirror of
https://github.com/iptv-org/epg
synced 2025-12-23 05:46:40 -05:00
Update tv.blue.ch.config.js
This commit is contained in:
@@ -81,5 +81,7 @@ function parseItems(content) {
|
|||||||
const nodes = data.Nodes.Items.filter(i => i.Kind === 'Channel')
|
const nodes = data.Nodes.Items.filter(i => i.Kind === 'Channel')
|
||||||
if (!nodes.length) return []
|
if (!nodes.length) return []
|
||||||
|
|
||||||
return nodes[0].Content.Nodes.Items.filter(i => i.Kind === 'Broadcast')
|
return nodes[0].Content.Nodes && Array.isArray(nodes[0].Content.Nodes.Items)
|
||||||
|
? nodes[0].Content.Nodes.Items.filter(i => i.Kind === 'Broadcast')
|
||||||
|
: []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user