Update epg-grabber.js
This commit is contained in:
parent
847ab0c1ab
commit
1e42b106db
|
@ -41,14 +41,14 @@ async function main() {
|
|||
for (let channel of channels) {
|
||||
await grabber
|
||||
.grab(channel, config, (data, err) => {
|
||||
console.log(
|
||||
` ${config.site} - ${data.channel.xmltv_id} - ${data.date.format('MMM D, YYYY')} (${
|
||||
data.programs.length
|
||||
} programs)`
|
||||
)
|
||||
|
||||
if (err) {
|
||||
console.log(` Error: ${err.message}`)
|
||||
} else {
|
||||
console.log(
|
||||
` ${config.site} - ${data.channel.xmltv_id} - ${data.date.format('MMM D, YYYY')} (${
|
||||
data.programs.length
|
||||
} programs)`
|
||||
)
|
||||
}
|
||||
})
|
||||
.then(results => {
|
||||
|
|
Loading…
Reference in New Issue