Update grab.js

This commit is contained in:
Aleksandr Statciuk 2021-10-14 00:11:17 +03:00
parent 33abc93a79
commit d80d9831ca

View file

@ -38,10 +38,11 @@ async function main() {
config.days = options.days config.days = options.days
await grabber await grabber
.grab(channel, config, (item, err) => { .grab(channel, config, (item, err) => {
const countryLabel = options.country ? ` (${options.country.toUpperCase()})` : ''
console.log( console.log(
` ${item.channel.site} (${options.country.toUpperCase()}) - ${ ` ${item.channel.site}${countryLabel} - ${item.channel.xmltv_id} - ${item.date.format(
item.channel.xmltv_id 'MMM D, YYYY'
} - ${item.date.format('MMM D, YYYY')} (${item.programs.length} programs)` )} (${item.programs.length} programs)`
) )
if (err) { if (err) {