Update epg-grabber.js
This commit is contained in:
parent
d52543f025
commit
b013499dea
|
@ -79,7 +79,7 @@ async function main() {
|
||||||
if (!config.channels) return logger.error('Path to [site].channels.xml is missing')
|
if (!config.channels) return logger.error('Path to [site].channels.xml is missing')
|
||||||
logger.info(`Loading '${config.channels}'...`)
|
logger.info(`Loading '${config.channels}'...`)
|
||||||
const channelsXML = fs.readFileSync(path.resolve(config.channels), { encoding: 'utf-8' })
|
const channelsXML = fs.readFileSync(path.resolve(config.channels), { encoding: 'utf-8' })
|
||||||
const channels = utils.parseChannels(channelsXML)
|
const { channels } = utils.parseChannels(channelsXML)
|
||||||
|
|
||||||
let programs = []
|
let programs = []
|
||||||
let i = 1
|
let i = 1
|
||||||
|
|
Loading…
Reference in New Issue