From 9de7d756982a1f7bff13e6d2087ef88dc01c6f4d Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 17 Jan 2022 18:33:00 +0300 Subject: [PATCH] Update tv.blue.ch.config.js --- sites/tv.blue.ch/tv.blue.ch.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sites/tv.blue.ch/tv.blue.ch.config.js b/sites/tv.blue.ch/tv.blue.ch.config.js index 3de09585..5b873c9a 100644 --- a/sites/tv.blue.ch/tv.blue.ch.config.js +++ b/sites/tv.blue.ch/tv.blue.ch.config.js @@ -81,5 +81,7 @@ function parseItems(content) { const nodes = data.Nodes.Items.filter(i => i.Kind === 'Channel') 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') + : [] }