mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Replaces icon with image
This commit is contained in:
parent
0eaff54a31
commit
bb6771f539
170 changed files with 428 additions and 351 deletions
|
@ -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}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue