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
await grabber
.grab(channel, config, (item, err) => {
const countryLabel = options.country ? ` (${options.country.toUpperCase()})` : ''
console.log(
` ${item.channel.site} (${options.country.toUpperCase()}) - ${
item.channel.xmltv_id
} - ${item.date.format('MMM D, YYYY')} (${item.programs.length} programs)`
` ${item.channel.site}${countryLabel} - ${item.channel.xmltv_id} - ${item.date.format(
'MMM D, YYYY'
)} (${item.programs.length} programs)`
)
if (err) {