From d1316f6615e4e9f44bb7effdce2189fd28c76290 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 19 Nov 2022 13:48:18 +0300 Subject: [PATCH] Update update.js #1361 --- 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 757af6cd..f9b28385 100644 --- a/scripts/commands/guides/update.js +++ b/scripts/commands/guides/update.js @@ -102,6 +102,7 @@ async function main() { programs = programs = _.sortBy(programs, ['channel', 'start']) programs = programs.map(p => new Program(p, new Channel(channels_dic[p.channel]))) + programs = _.uniqBy(programs, p => p.channel + p.start) const filename = country.code.toLowerCase() const xmlFilepath = `${PUBLIC_DIR}/guides/${filename}.xml`