Update epg-grabber.js

This commit is contained in:
Aleksandr Statciuk 2021-10-14 19:59:46 +03:00
parent e337233e33
commit 9af316b628
1 changed files with 3 additions and 2 deletions

View File

@ -57,9 +57,10 @@ async function main() {
}
const xml = utils.convertToXMLTV({ config, channels, programs })
utils.writeToFile(config.output, xml)
const outputPath = config.output || 'guide.xml'
utils.writeToFile(outputPath, xml)
console.log(`File '${config.output}' successfully saved`)
console.log(`File '${outputPath}' successfully saved`)
console.log('Finish')
}