mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 10:56:57 -05:00
Update grab.js
This commit is contained in:
@@ -24,7 +24,11 @@ async function main() {
|
|||||||
|
|
||||||
console.log(`Loading '${channelsPath}'...`)
|
console.log(`Loading '${channelsPath}'...`)
|
||||||
const channelsFile = file.read(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)
|
channels = filterChannels(channels, options)
|
||||||
|
|
||||||
console.log('Parsing:')
|
console.log('Parsing:')
|
||||||
|
|||||||
Reference in New Issue
Block a user