From b3bc0f5461e4626b46fa38cdc6d7dc274815f646 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 7 Feb 2023 03:18:14 +0300 Subject: [PATCH] Update update.js Fixes "TypeError: Cannot set properties of undefined (setting 'site')" https://github.com/iptv-org/epg/actions/runs/4102046013/jobs/7074531240 --- scripts/commands/guides/update.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/commands/guides/update.js b/scripts/commands/guides/update.js index 624c7bb5..79508fd6 100644 --- a/scripts/commands/guides/update.js +++ b/scripts/commands/guides/update.js @@ -71,6 +71,8 @@ async function save(filepath, programs) { for (let programData of programs) { let channelData = api_channels[programData.channel] + if (!channelData) continue + channelData.site = programData.site channelData.lang = programData.titles[0].lang