wip
This commit is contained in:
parent
cb7679933c
commit
7aabc12c6d
|
@ -5,7 +5,7 @@ const program = new Command()
|
|||
const { merge } = require('lodash')
|
||||
const { gzip } = require('node-gzip')
|
||||
const file = require('../src/file')
|
||||
const { EPGGrabber, parseChannels, generateXMLTV, loadLogo } = require('../src/index')
|
||||
const { EPGGrabber, parseChannels, generateXMLTV } = require('../src/index')
|
||||
const { create: createLogger } = require('../src/logger')
|
||||
const { parseNumber, getUTCDate } = require('../src/utils')
|
||||
const { name, version, description } = require('../package.json')
|
||||
|
@ -84,8 +84,8 @@ async function main() {
|
|||
await grabber
|
||||
.grab(channel, date, (data, err) => {
|
||||
logger.info(
|
||||
`[${i}/${total}] ${config.site} - ${data.channel.xmltv_id} - ${dayjs(data.date)
|
||||
.utc()
|
||||
`[${i}/${total}] ${config.site} - ${data.channel.id} - ${dayjs
|
||||
.utc(data.date)
|
||||
.format('MMM D, YYYY')} (${data.programs.length} programs)`
|
||||
)
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ class Channel {
|
|||
const data = {
|
||||
id: c.xmltv_id,
|
||||
name: c.name,
|
||||
site_id: c.site_id,
|
||||
site: c.site || '',
|
||||
site_id: c.site_id,
|
||||
lang: c.lang || '',
|
||||
logo: c.logo || '',
|
||||
url: c.site ? `https://${c.site}` : ''
|
||||
|
|
Loading…
Reference in New Issue