mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
Replaces icon with image
This commit is contained in:
@@ -35,7 +35,7 @@ module.exports = {
|
||||
url: parseURL(item),
|
||||
start,
|
||||
stop,
|
||||
icon: parseIcon(item)
|
||||
image: parseImage(item)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -47,7 +47,7 @@ function parseStart(item, date) {
|
||||
return dayjs.tz(`${date.format('YYYY-MM-DD')} ${item.hour}`, 'YYYY-MM-DD HH:mm', 'Europe/Rome')
|
||||
}
|
||||
|
||||
function parseIcon(item) {
|
||||
function parseImage(item) {
|
||||
let cover = null
|
||||
if (item.image) {
|
||||
cover = `https://www.raiplay.it${item.image}`
|
||||
|
||||
Reference in New Issue
Block a user