mirror of
https://github.com/iptv-org/epg
synced 2025-12-20 04:16:55 -05:00
wip
This commit is contained in:
@@ -65,16 +65,21 @@ async function main() {
|
||||
.then(response => {
|
||||
const channel = request.channel
|
||||
const site = sites[channel.site]
|
||||
const date = request.date
|
||||
|
||||
const programs = site
|
||||
.parser({
|
||||
channel,
|
||||
content: response.data,
|
||||
date: request.date
|
||||
date
|
||||
})
|
||||
.filter(p => p)
|
||||
|
||||
console.log(` ${channel.site} - ${channel.xmltv_id} (${programs.length} programs)`)
|
||||
console.log(
|
||||
` ${channel.site} - ${channel.xmltv_id} - ${date.format('MMM D, YYYY')} (${
|
||||
programs.length
|
||||
} programs)`
|
||||
)
|
||||
|
||||
return programs
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user