From 9ecfa2b5c1908125b99263ac2a155d48a6eeef60 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 27 Aug 2022 20:21:26 +0300 Subject: [PATCH] Update update.js --- scripts/commands/guides/update.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/commands/guides/update.js b/scripts/commands/guides/update.js index 304d4ccc..2f8fe75e 100644 --- a/scripts/commands/guides/update.js +++ b/scripts/commands/guides/update.js @@ -27,6 +27,7 @@ async function main() { } programs = _.sortBy(programs, ['channel', 'start']) programs = programs.map(p => new Program(p, channels[p.channel])) + programs = _.uniqBy(programs, 'start') total += programs.length channels = Object.values(channels) channels = _.sortBy(channels, 'id')