mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update parse-channels.js
This commit is contained in:
parent
c50fab812c
commit
4d3c1b6023
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
const { Command } = require('commander')
|
const { Command } = require('commander')
|
||||||
const { db } = require('../core')
|
const { db, logger } = require('../core')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const _ = require('lodash')
|
const _ = require('lodash')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
@ -46,7 +46,7 @@ async function main() {
|
||||||
|
|
||||||
fs.writeFileSync(path.resolve(output), xml)
|
fs.writeFileSync(path.resolve(output), xml)
|
||||||
|
|
||||||
console.log(`File '${output}' successfully saved`)
|
logger.info(`File '${output}' successfully saved`)
|
||||||
}
|
}
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue