This commit is contained in:
freearhey
2021-03-11 18:23:22 +03:00
parent 158c318d99
commit 3b08799772
4 changed files with 54 additions and 53 deletions

View File

@@ -77,7 +77,7 @@ async function main() {
utils.createDir(path.dirname(config.filename))
utils.writeToFile(config.filename, xml)
console.log(`File '${config.filename}' successfully updated`)
console.log('Finish')
console.log('Finish\r\n')
}
main()

View File

@@ -21,7 +21,7 @@ utils.convertToXMLTV = function ({ channels, programs }) {
if (start && title) {
output += `
<programme start="${start}" stop="${stop}" channel="${program.channel}"><title lang="${lang}">${title}</title>`
<programme start="${start}" stop="${stop}" channel="${program.channel}"><title lang="${lang}">${title}</title>`
if (program.category) {
output += `<category lang="${lang}">${program.category}</category>`
@@ -31,7 +31,7 @@ utils.convertToXMLTV = function ({ channels, programs }) {
}
}
output += '</tv>'
output += '\r\n</tv>'
return output
}