mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
Update parse-channels.js
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user