Update epg-grabber.js

This commit is contained in:
Aleksandr Statciuk 2022-01-25 17:51:23 +03:00
parent d52543f025
commit b013499dea
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ async function main() {
if (!config.channels) return logger.error('Path to [site].channels.xml is missing')
logger.info(`Loading '${config.channels}'...`)
const channelsXML = fs.readFileSync(path.resolve(config.channels), { encoding: 'utf-8' })
const channels = utils.parseChannels(channelsXML)
const { channels } = utils.parseChannels(channelsXML)
let programs = []
let i = 1