Update epg-grabber.js

This commit is contained in:
Aleksandr Statciuk 2021-10-06 18:12:11 +03:00
parent 847ab0c1ab
commit 1e42b106db
1 changed files with 6 additions and 6 deletions

View File

@ -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 => {