mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Update grab.js
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user