Update update.js

This commit is contained in:
Aleksandr Statciuk 2022-08-28 00:30:29 +03:00
parent 5abdb59bfe
commit e824218dbc

View file

@ -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')