mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update grab.js
This commit is contained in:
parent
b814897c84
commit
d15e2abbe4
1 changed files with 5 additions and 1 deletions
|
@ -24,7 +24,11 @@ async function main() {
|
|||
|
||||
console.log(`Loading '${channelsPath}'...`)
|
||||
const channelsFile = file.read(channelsPath)
|
||||
let channels = parser.parseChannels(channelsFile)
|
||||
let parsed = parser.parseChannels(channelsFile)
|
||||
let channels = parsed.groups.reduce((acc, curr) => {
|
||||
acc = acc.concat(curr.channels)
|
||||
return acc
|
||||
}, [])
|
||||
channels = filterChannels(channels, options)
|
||||
|
||||
console.log('Parsing:')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue