This commit is contained in:
freearhey 2021-03-12 01:37:08 +03:00
parent 3009e0ed1e
commit d06fa32f9d
4 changed files with 57 additions and 823 deletions

View file

@ -47,7 +47,13 @@ utils.convertToXMLTV = function ({ config, channels, programs }) {
if (start && title) {
output += `
<programme start="${start}" stop="${stop}" channel="${program.channel}"><title lang="${lang}">${title}</title>`
<programme start="${start}"`
if (stop) {
output += ` stop="${stop}"`
}
output += ` channel="${program.channel}"><title lang="${lang}">${title}</title>`
if (description) {
output += `<desc lang="${lang}">${description}</desc>`