mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update grab.js
This commit is contained in:
parent
26e7fb4ab4
commit
970c0d40ea
1 changed files with 8 additions and 1 deletions
|
@ -17,7 +17,14 @@ const options = program.opts()
|
||||||
async function main() {
|
async function main() {
|
||||||
console.log('Starting...')
|
console.log('Starting...')
|
||||||
|
|
||||||
const channels = parseChannels(options.channels)
|
const buffer = {}
|
||||||
|
const channels = parseChannels(options.channels).filter(channel => {
|
||||||
|
if (!buffer[channel.xmltv_id]) {
|
||||||
|
buffer[channel.xmltv_id] = true
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
})
|
||||||
|
|
||||||
console.log('Parsing:')
|
console.log('Parsing:')
|
||||||
let programs = []
|
let programs = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue