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`