Escape channel logo url

This commit is contained in:
freearhey 2021-03-28 04:00:21 +03:00
parent 098c43973d
commit 0de1b19830
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ utils.convertToXMLTV = function ({ config, channels, programs }) {
const displayName = this.escapeString(channel.name)
output += `<channel id="${id}"><display-name>${displayName}</display-name>`
if (channel.logo) {
output += `<icon src="${channel.logo}" />`
const logo = this.escapeString(channel.logo)
output += `<icon src="${logo}" />`
}
output += `</channel>\r\n`
}