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