Update utils.js

Escape icon url before displaying in xml
This commit is contained in:
freearhey 2021-04-26 15:47:02 +03:00
parent c5f0f0de6b
commit 8b6466467c
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ utils.convertToXMLTV = function ({ config, channels, programs }) {
const start = program.start ? dayjs.utc(program.start).format('YYYYMMDDHHmmss ZZ') : '' const start = program.start ? dayjs.utc(program.start).format('YYYYMMDDHHmmss ZZ') : ''
const stop = program.stop ? dayjs.utc(program.stop).format('YYYYMMDDHHmmss ZZ') : '' const stop = program.stop ? dayjs.utc(program.stop).format('YYYYMMDDHHmmss ZZ') : ''
const lang = program.lang || config.lang const lang = program.lang || config.lang
const icon = program.icon const icon = this.escapeString(program.icon)
if (start && title) { if (start && title) {
output += `<programme start="${start}"` output += `<programme start="${start}"`