mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update update.js
This commit is contained in:
parent
80c7d1d3e2
commit
e245003a81
1 changed files with 3 additions and 3 deletions
|
@ -25,11 +25,11 @@ async function main() {
|
|||
if (channels[item.channel.id]) continue
|
||||
channels[item.channel.id] = new Channel(item.channel)
|
||||
}
|
||||
programs = _.sortBy(programs, ['channel', 'start'])
|
||||
programs = programs.map(p => new Program(p, channels[p.channel]))
|
||||
total += programs.length
|
||||
channels = Object.values(channels)
|
||||
channels = _.sortBy(channels, 'id')
|
||||
programs = _.sortBy(programs, ['channel', 'start'])
|
||||
programs = programs.map(p => new Program(p))
|
||||
total += programs.length
|
||||
|
||||
const filepath = `${PUBLIC_DIR}/guides/${key}.epg.xml`
|
||||
logger.info(`Creating "${filepath}"...`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue