mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update grab.js
This commit is contained in:
parent
33abc93a79
commit
d80d9831ca
1 changed files with 4 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue