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