Update epg-grabber.js

This commit is contained in:
Aleksandr Statciuk 2022-08-29 04:14:12 +03:00
parent b9c446f87a
commit 6a0ca231a2
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ 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')
const _ = require('lodash')
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
@ -99,6 +100,8 @@ async function main() {
}
}
programs = _.uniqBy(programs, p => p.start + p.channel)
const xml = generateXMLTV({ channels, programs })
let outputPath = options.output || config.output
if (options.gzip) {