From 97f8f7dad4af2809a6b5587b182d88e7b89855d6 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 23 Jan 2022 15:13:51 +0300 Subject: [PATCH] Update create-database.js --- scripts/commands/create-database.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/commands/create-database.js b/scripts/commands/create-database.js index a08ae368..61fa785b 100644 --- a/scripts/commands/create-database.js +++ b/scripts/commands/create-database.js @@ -42,6 +42,7 @@ async function getChannels() { const groupId = `${region}/${site}` const items = await parser.parseChannels(filepath) for (const item of items) { + if (!item.site || !item.site_id || !item.xmltv_id || !item.name) continue const key = `${item.site}:${item.site_id}` if (!channels[key]) { const countryCode = item.xmltv_id.split('.')[1]