mirror of
https://github.com/iptv-org/epg
synced 2026-09-10 22:06:56 -04:00
properly escape links for viewing & removed debug line
This commit is contained in:
@@ -68,7 +68,11 @@ module.exports = {
|
||||
lang: 'fr',
|
||||
site_id: item.epgId,
|
||||
name: item.name,
|
||||
logo: encodeURIComponent(item.logos[0]?.logoImageUrl)
|
||||
logo: item.logos[0]?.logoImageUrl.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/'/g, ''')
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -140,7 +144,6 @@ function parseEpisode(item) {
|
||||
|
||||
function parseItems(content, channel) {
|
||||
const data = JSON.parse(content)
|
||||
//console.log(data) // For debug
|
||||
|
||||
return data && data[channel.site_id] ? data[channel.site_id] : []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user