diff --git a/scripts/grab.js b/scripts/grab.js index 77b15294..7896c308 100644 --- a/scripts/grab.js +++ b/scripts/grab.js @@ -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) {