mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-11 09:30:06 -04:00
wip
This commit is contained in:
parent
7e1904fdfa
commit
82cc8e648c
7 changed files with 138 additions and 16 deletions
|
@ -40,7 +40,13 @@ async function main() {
|
|||
.get(item.url)
|
||||
.then(response => {
|
||||
const parserOptions = Object.assign({}, item, config, { content: response.data })
|
||||
const programs = config.parser(parserOptions).filter(i => i)
|
||||
const programs = config
|
||||
.parser(parserOptions)
|
||||
.filter(i => i)
|
||||
.map(p => {
|
||||
p.channel = item.channel.xmltv_id
|
||||
return p
|
||||
})
|
||||
|
||||
console.log(
|
||||
` ${item.channel.site} - ${item.channel.xmltv_id} - ${item.date.format(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue