This commit is contained in:
freearhey 2021-03-12 18:44:51 +03:00
parent d5767f4ca0
commit 67974b1c74
3 changed files with 53 additions and 123 deletions

View file

@ -57,7 +57,14 @@ async function main() {
return programs
})
.then(utils.sleep(config.delay))
.catch(console.log)
.catch(err => {
console.log(
` ${item.channel.site} - ${item.channel.xmltv_id} - ${item.date.format(
'MMM D, YYYY'
)} (0 programs)`
)
console.log(` Error: ${err.message}`)
})
programs = programs.concat(progs)
}